I need to take apart the text in a richtextbox line by line to put into a file because i need to return line by line.
doing this:
write #1, richtextbox.text
will make a single "entry" to the file... how can i take apart the textbox line by line?
Printable View
I need to take apart the text in a richtextbox line by line to put into a file because i need to return line by line.
doing this:
write #1, richtextbox.text
will make a single "entry" to the file... how can i take apart the textbox line by line?
This only works in VB6 though (We just had a similar conversation in another thread :) )Code:' Cuts the string into lines in an array
Dim MyStr as String
Dim Output() as String
MyStr = Text1.Text
Output = Split(MyStr, vbCrLf)
' Then loop 0 to Ubound(Output) to write to file
oh wow! thanks man!