Move to the next personal ID if the function = true

  • Thread starter Thread starter castlehere
  • Start date Start date
C

castlehere

Guest
i have file text to personals ID okay i wana move to next personal id if function = true

this is my try

Dim enumerator As List(Of String).Enumerator
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim ListUsers As List(Of String)
ListUsers = New List(Of String)(File.ReadAllLines("list.txt"))

enumerator = ListUsers.GetEnumerator()

While True
Dim current As String = enumerator.Current
CheckId(current)
End While

End Sub
Function CheckId(id As String)
If id.Contains("ID:") Then
enumerator.MoveNext()
Return True
Else
Return False
End If
End Function


but its no work

Continue reading...
 
Back
Top