Fórum FINALIZAR VENDA #452368
18/08/2013
0
Jonny Moraes
Curtir tópico
+ 0Posts
18/08/2013
Jonny Moraes
procedure TFrmFinalizarVendas.Button1Click(Sender: TObject);
begin
if (EDTVALORPAGO.text)>=(DBSUBTOTAL.text) then
begin
gravavendas;
impressao;
end
else
if (edtvalorpago.text) <(dbsubtotal.text) then
begin
showmessage('Valor Incorreto');
end;
end;
Gostei + 0
18/08/2013
Mauricio Rodrigues
conversa string para float
procedure TFrmFinalizarVendas.Button1Click(Sender: TObject);
begin
if StrtoFloat(EDTVALORPAGO.text)>=StrToFloat(DBSUBTOTAL.text) then
begin
gravavendas;
impressao;
end
else
if StrtoFloat(edtvalorpago.text) < strtofloat(dbsubtotal.text) then
begin
showmessage('Valor Incorreto');
end;
end;
Gostei + 0
20/08/2013
Jonny Moraes
Gostei + 0
20/08/2013
Jonny Moraes
Gostei + 0
20/08/2013
Joel Rodrigues
Tópico concluído.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)