Ver Mensaje Individual
  #2  
Antiguo 20-12-2005
Avatar de AGAG4
AGAG4 AGAG4 is offline
Miembro
 
Registrado: ago 2004
Ubicación: Los Mochis, Sinaloa, México
Posts: 1.420
Reputación: 21
AGAG4 Va por buen camino
Checa esto....

Te paso la siguiente función ya tu la Revisarás para manipularla, esta misma te agrega ceros a la derecha:
Código Delphi [-]
function AgregarCeros(texto:String; longi:byte):String;
var x,y:byte;
begin
  x:=longi-length(texto);
  if length(texto)then begin
    result:=texto;
    for y:=1 to x do
      result:='0'+result;
  end else result:=texto;
end;

Saludos....
Responder Con Cita