Ver Mensaje Individual
  #2  
Antiguo 07-09-2007
Avatar de cHackAll
[cHackAll] cHackAll is offline
Baneado?
 
Registrado: oct 2006
Posts: 2.159
Reputación: 20
cHackAll Va por buen camino
Hola LizVazquez, bienvenida seas al Club...
El código que dejaste al parecer SI funciona, pero:

Código Delphi [-]
function IntToStr(Value: Integer; Len: Cardinal = 0; Chars: Char = '0'): string;
begin
 Str(Value, Result);
 while Length(Result) < Len do
  Result := Chars + Result;
end;
 
procedure TForm1.Button1Click(Sender: TObject);
var Monto: extended;
begin
 Monto := 3.00;
 Caption := '( ' + IntToStr(Trunc(Monto)) + ' PESOS ' + IntToStr(Trunc(Frac(Monto) * 100), 2) + ' /100 CTVOS )';
end;

0j0: No es la "mejor" forma de hacerlo pero funciona!
Responder Con Cita