View Single Post
  #7 (permalink)  
Old 10-23-2008, 05:22 PM
derez's Avatar
derez derez is online now
Basic4ppc Expert
 
Join Date: May 2007
Posts: 916
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

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
Reply With Quote