Dim str As String
For Each str In TextBox1.Lines
If str.Trim.Length > 0 Then
Debug.Print(str)
End If
Next
VB.NET:Dim str As String For Each str In TextBox1.Lines If str.Trim.Length > 0 Then Debug.Print(str) End If Next
Dim MyString() As String = Textbox1.Lines
For Each CurrentLine As String in MyString
If CurrentLine.Trim.Length > 0 Then
'Your Code Here
End If
Next