Código
FormatarTamanhoTexto(iTamanho: Integer;
sTexto: String): String;
begin
if (iTamanho > Length( sTexto )) then begin
while(iTamanho > Length( sTexto ))do begin
sTexto := sTexto + ' ';
end;
end else if(iTamanho < Length( sTexto ))then begin
sTexto := copy(sTexto,1,iTamanho);
end;
Result := sTexto;
end;
Planeta Delphi - www.planetadelphi.com.br - Todos os direitos reservados | Copyright 2001-2009