Ver Mensaje Individual
  #2  
Antiguo 10-09-2008
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - Espańa
Posts: 18.293
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
DupeString para generar una con 4 espacios, la enganchas por delente y con Copy cortar con longitud 4.

Algo Así:

Código Delphi [-]
Str := '12';
Str2 := Copy(DupeString(' ',4) + Str, 1, 4); 

// En Str2 debería estar '  12'
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita