Hey,
I have a textbox with some settings in it. How do i go line by line to get there value's?
Printable View
Hey,
I have a textbox with some settings in it. How do i go line by line to get there value's?
First, you should set the 'Multi Lines' property of textbox to 'True'. Then you can access the lines in one of these ways:
Alternatively you can read all the contents of the textbox to a string array.VB Code:
Dim txLine as String, i as Intger txLine=Textbox1.Lines()(i) 'Where i is the zero based index of the line you want to access
VB Code:
Dim txLines() as String, i as Integer txLines=Textbox1.Lines() 'then access each item from the string array