[HELP] Align Text !

Iniciado por msdl, 21 Marzo 2011, 11:54 AM

0 Miembros y 1 Visitante están viendo este tema.

msdl

hello..

I just wonder how to Align Text to left direction ...

example :


    Name : XXXX XXXX
      Age : 23
  Skills : XXXX, XXXX , XXXX
           Address : XXXXX XXXX ( XXXX )


I want to align it to be like this :


Name : XXXX XXXX
Age : 23
Skills : XXXX, XXXX , XXXX
Address : XXXXX XXXX ( XXXX )


with no space before words or with specific number of spaces ..

any idea .. ??!!?!

raul338

Well... you don't show your code or your enviroment, I cant figure out how you get the text, or how do you print it

msdl

raul338 what code ??
my homework is to code simple text editor with VB6 ..
!!

79137913

HOLA!!!

Cita de: msdl en 21 Marzo 2011, 12:30 PM
raul338 what code ??
my homework is to code simple text editor with VB6 ..
!!

Homework?

You re not at the right place.

GRACIAS POR LEER!!!
"Como no se puede igualar a Dios, ya he decidido que hacer, ¡SUPERARLO!"
"La peor de las ignorancias es no saber corregirlas"

79137913                          *Shadow Scouts Team*

raul338

Well in this forum we don't do homework for anybody.

Try to code a function to remove spaces, if you have problem then tell us, explaining and/or showing code.

If you don't know much about vb, you always can search for a reference, like this one Visual Basic 6 String Functions

Edu

You should start it, and then we will tell you the mistakes, 'cause we dont do homework here.

msdl

hey guys i just want a help to make align option !!

my homework is to do simple text editor like notepad ..
i already do replace , find , copy , paste , .... and i just wanna know how
to make all text aligned to left with no sapce or with specific number of spaces..

thats it ..!!

79137913

HOLA!!!

Just the alignment ?

Código (vb) [Seleccionar]
Private Sub Form_Load()
    Text1.Alignment = 0
End Sub


GRACIAS POR LEER!!!
"Como no se puede igualar a Dios, ya he decidido que hacer, ¡SUPERARLO!"
"La peor de las ignorancias es no saber corregirlas"

79137913                          *Shadow Scouts Team*

raul338

If you would saw the link that i've posted. You would noticed about RTrim$ and LTrim$ :rolleyes: , you just have to used on every line that you want to put an "Alignment"