question

Les-0449 avatar image
0 Votes"
Les-0449 asked Les-0449 commented

List(Of PointF) help

In the following code I generate values for x and y, how do I extract the x and y value say for index 3 I am relatively new using List of

     Dim pts As New List(Of PointF)
     For x = 0 To 10
         pts.Add(New Point(x, CInt(x ^ 2)))
     Next

Thanks

dotnet-visual-basic
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SimpleSamples avatar image
0 Votes"
SimpleSamples answered Les-0449 commented

For this a List is like an array.

 pts(3).x
 pts(3).y

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi SS,

I can not believe it was so simple <S> and yes its just like an array.

Thank you so much,

Les

0 Votes 0 ·