User-646632417 posted
How do I load an array? I have the PointF coordinates (50F, 50F) in a data table and would like to load these in the PointF() array, just don't know how.
'This is the manual way Dim point1 As New PointF(50F, 50F) Dim point2 As New PointF(100F, 25F) Dim point3 As New PointF(200F, 5F) Dim point4 As New PointF(250F, 50F) Dim curvePoints As PointF() = {point1, point2, point3, point4}
I tried the below but this doesn't work. My programming skills are just not that good yet.
'How to get this working? Dim curvePoints As PointF() For i = 0 to dtbl.datatable.Count - 1 curvePoints.X = datatable.Rows(i).Item(0) curvePoints.Y = datatable.Rows(i).Item(1) Next
Thanks for your help!