ritesh2190
Member
- Joined
- Jun 7, 2011
- Messages
- 15
- Programming Experience
- 1-3
VB.NET:
For Each line1 In TextBox1.Lines
sample1 = TextBox1.Lines(k3)
Dim len1 As String
len1 = sample.Length
' For y6 = 0 To len1 - 1
y7 = InStr(sample1, "=-" + fg)
If y7 <> 0 Then
TextBox2.Text = TextBox2.Text + vbCrLf + " rule 39 violated at line " + k3.ToString()
End If
'Next
k3 = k3 + 1
If k3 = TextBox1.Lines.Length - 1 Then
Exit For
End If
Next
in the above code wen k3 is equal to the length of the textbox still the for loop is running again it is not coming out of it.
pls help!!!!!!!