Ver Mensaje Individual
  #4  
Antiguo 06-02-2007
chipsoni chipsoni is offline
Miembro
 
Registrado: nov 2005
Posts: 75
Reputación: 19
chipsoni Va por buen camino
A ver, yo declaro una variable String para meter mi edit y despues uso el TryStrToFloat de esa variable y me peta, os digo:

procedure TFormPedido.BAceptarClick(Sender: TObject);
var
importe:String;
begin
importe:=Eimporte.Text;
if (TryStrToFloat(importe)) then
begin
.
.
.
end
else
showmessage ('Formato del importe incorrecto');
end;

El error de complicacion dice que: "there is overloaded version of TryStrToFloat that can be called with these arguments."

Hago algo mal, pero no se que es.
Responder Con Cita