Format
Publicado por Martha ramirez (1 intervención) el 02/07/2008 06:42:09
Hola a todos de ante mano gracias...
Tengo este prble al formatear este edit
var
P,C:Extended;
begin
TEdit(Sender).color := $0099C7DD;
P:=StrToFloat('0'+Tot.Text);
C:=StrToFloat('0'+Pag.Text);
if C<=P then
Sal.Text:=FloatToStr(P-C)
else
if C>P then
Begin
Cam.Text := FormatFloat('0.00',floattostr(C-P));
Sal.AsInteger := 0;
end
else
Sal.Clear
me sale un erro que dice Icmpatible tipos Double and string
Gracias
Tengo este prble al formatear este edit
var
P,C:Extended;
begin
TEdit(Sender).color := $0099C7DD;
P:=StrToFloat('0'+Tot.Text);
C:=StrToFloat('0'+Pag.Text);
if C<=P then
Sal.Text:=FloatToStr(P-C)
else
if C>P then
Begin
Cam.Text := FormatFloat('0.00',floattostr(C-P));
Sal.AsInteger := 0;
end
else
Sal.Clear
me sale un erro que dice Icmpatible tipos Double and string
Gracias
Valora esta pregunta


0