Hey i have a textbox that i want to read line by line and store in an ArrayList. I am currently trying to find the line break at the end of each line. Here is the code:
While i = 0
h = ptext.IndexOf(vbCrLf)'here is where i try to find line break. i have tried everything from Chr(10) to vbLf
If h < 0 Then
h = ptext.Length
i = 1
End If
a.Add(ptext.Substring(0, h))
ln += 1
If i = 0 Then ptext = ptext.Substring(h, ptext.Length)
h = -7
End While
Any suggestions?
thanks
m