FreddyD
12-20-2006, 10:16 AM
Hi,
I produce a lot of DriveTimeZones in MapPoint 2006 by VB6-code and I stored all vectors of the polygones in my MS ACCESS xxx.mdb.
I would like to takte this polygones to the map at a later time using the method AddPolyLine.
The code works correctly if I define the locaion-variable as follows:
Dim objLoc(1 to 9) as MapPointCtl.Location
However, the parameters "1" and "9" must be constants.
Since I, however, don't know how many vectors my polygones have, I would like to us a variable array. I then could determine the number of vectors and fix the size for the array.
If I try this, I always get the error massage: Wrong parameter -214 702 4809 (800 700 57).
I have read much in this forum but i haven't found a solution.
Can anybody help, how to do?
I produce a lot of DriveTimeZones in MapPoint 2006 by VB6-code and I stored all vectors of the polygones in my MS ACCESS xxx.mdb.
I would like to takte this polygones to the map at a later time using the method AddPolyLine.
The code works correctly if I define the locaion-variable as follows:
Dim objLoc(1 to 9) as MapPointCtl.Location
However, the parameters "1" and "9" must be constants.
Since I, however, don't know how many vectors my polygones have, I would like to us a variable array. I then could determine the number of vectors and fix the size for the array.
If I try this, I always get the error massage: Wrong parameter -214 702 4809 (800 700 57).
I have read much in this forum but i haven't found a solution.
Can anybody help, how to do?