Hi
I am coding a decoding program to use in my school. The user can write a text into a text box. On the main form I have a labels 23 (columns) * 10 (rows). If the user wites : "Hello I am using Visual Basic 6" I saved it as a string and then used the Mid function to get the sting int the labels.
That gave me this:
H e l l o I a m u s i n g V i s u a l B a
s i c 6
My problem i I do not want to split the words. If the word like in this example Basic does not fit to the line I would like to go to a new line. Then I thouhgt its better to save the contents of the text box to an array like this:
textitilbuinn = Trim(Text2)
Textinn = Split(textitilbuinn, Space(1))
NumItems = UBound(Textinn())
Rem Text2.Text = Textinn(1)
But I´m struggling on the next step - how to get the contents of the array wihout splitting them between lines.
Any suggestions. all help appreciated
Keli
I am coding a decoding program to use in my school. The user can write a text into a text box. On the main form I have a labels 23 (columns) * 10 (rows). If the user wites : "Hello I am using Visual Basic 6" I saved it as a string and then used the Mid function to get the sting int the labels.
That gave me this:
H e l l o I a m u s i n g V i s u a l B a
s i c 6
My problem i I do not want to split the words. If the word like in this example Basic does not fit to the line I would like to go to a new line. Then I thouhgt its better to save the contents of the text box to an array like this:
textitilbuinn = Trim(Text2)
Textinn = Split(textitilbuinn, Space(1))
NumItems = UBound(Textinn())
Rem Text2.Text = Textinn(1)
But I´m struggling on the next step - how to get the contents of the array wihout splitting them between lines.
Any suggestions. all help appreciated
Keli