View Single Post
  #10 (permalink)  
Old 10-23-2008, 06:30 PM
agraham's Avatar
agraham agraham is online now
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Ooops! The array should be Int32. I don't know why it not being Int32 might cause that error, I would expect a type error. If it persists post the bit of code that causes it.
Code:
Dim routepoints(0,0As Int32 ' in Globals
...
...
Dim routepoints (b-a+22As Int32
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())
...
Reply With Quote