User69570187 posted
Hi Everyone,
I'm trying switch from using arraylist to arrays. Seams like arrays are not as easy to use when you don't know the size of the array.
Is it possible to use an array without having to specify the size of the array like in this example?
Thanks in advance.
dr = cmd.ExecuteReader
Dim counter As Integer = 0
Dim myarray() As String
While dr.Read()
myarray(counter) = dr("FirstName").ToString
counter += 1
End While
Return myarray