Ver Mensaje Individual
  #2  
Antiguo 12-06-2011
Avatar de Caral
[Caral] Caral is offline
Miembro Premium
 
Registrado: ago 2006
Posts: 7.659
Reputación: 27
Caral Va por buen camino
Hola
Puedes usar el componente ATexto.
Uso:
Código Delphi [-]
function Deletrear(numero: real) : string; var
  letras: TLetras;
begin
  letras := TLetras.Create(nil);
  try
    letras.Numero := numero;
    Result := letras.AsString;
  finally
    letras.Free;
  end;
end;

Como llamarlo:
Código Delphi [-]
var
 n: String;
begin
  n:= Deletrear(StrToFloat(Edit1.Text) );
 Edit2.Text:= (n);
end;
Saludos
__________________
Siempre Novato

Última edición por Caral fecha: 24-06-2011 a las 19:05:56.
Responder Con Cita