Dim aa, bb As New Collection
For Each user As User In allUser
Dim character As String = user.FirstName(0)
If character = "b" Or character = "B" Then
b.Add(user)
End If
If character = "a" Or character = "A" Then
a.Add(user)
End If
Next
this loop use for find first letter (a-b) and add it to collection (aa,bb) but when i run , i get error "System.IndexOutOfRangeException: Collection index must be in the range 1 to the size of the collection.". Can someone give me a solution ?