Fórum Espaços em brancos á direita do txt #182706
18/09/2003
0
EX:
DELPHI O CENTRO_____
queria que colocasse 5 espacos em brancos.
Obrigado. :D
Ecie
Curtir tópico
+ 0Posts
18/09/2003
Lidiane
var i:integer; texto:string; begin texto:=trim(edit1.Text); for i := 1 to (20-length(texto)) do begin insert(´X´,texto,length(texto)+1); end; edit1.Text:=texto; end;
Substitua o ´X´ por ´ ´
Lidiane.
Gostei + 0
18/09/2003
Adilsond
ShowMessage(´X´ + Format(´¬-20s´,[´TEXTO´]) + ´X´);
Gostei + 0
18/09/2003
Echoesofpinkfloyd
ou
texto:=trim(texto)+stringofchar(´X´, 20-lenght(trim(texto)));
onde x=´ ´;
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)