Yo guys heres my code:
Im trying to extract one line each time the sub is called and if no more lines re-set to 0 and start again
Problem is that it does not increase even tho i have set it as an array, still brings up he first line
My listbox is like (no spaces):
User1 : Pass1
User2 : Pass2
Try
Dim I As Integer
If I >= ListBox2.Items.Count Then
MsgBox("Restarted Integer")
I = 0
Else
Dim Regex As New Regex("\w+:\w+")
For Each M As Match In Regex.Matches(ListBox2.Items.Item(I))
Dim User As String = M.Value.Split(":").GetValue(0)
Dim Pass As String = M.Value.Split(":").GetValue(1)
MsgBox("" & User & " " & Pass)
Next
I += 1
End If
Catch Exception As Exception
End Try