OK, I see the problem now.
I can start it from the first point but I don't know how many points I have, and I can assign the value only inside a loop, not as an array declaration.
I don't thing that array list can accept two dimensions ...
The code goes like this:
...
For i = a To b + 1
Point(i).x = (...some calculation)
routepoints(i-a,0) = Point(i).x ' so it starts from 0
Point(i).y = (...some calculation)
routepoints(i-a,1) = Point(i).y
Next
drawer.(pen.Value, routePoints())
...
In polygon Erel used two arraylists to define the coordinates:
AddArraylist("alX")
AddArraylist("alY")
any suggestion ?
Thanks
__________________
David Erez
Ramat Hasharon, Israel
|