G
Guest
How do I create an array of points using a loop? I wrote the following code that doesn't seem to be working
Dim allPoints() As Poin
Dim i As Intege
For i = 0 To 100
Dim myPoint As New Point(i , i*2
allPoints(i) = myPoint 'this line causes the problem
Next
Dim allPoints() As Poin
Dim i As Intege
For i = 0 To 100
Dim myPoint As New Point(i , i*2
allPoints(i) = myPoint 'this line causes the problem
Next