View Single Post

  #2 (permalink)  
Old 04-11-2003
Bart Vervenne Bart Vervenne is offline
Junior Member
White Belt
 
Join Date: Apr 2003
Posts: 4
Array of locations

Correction of previous topic
Is there a way to make a dynamic array ?
All samples I found until now use following syntax. They don't allow to change the upper limit of the array, or to use a variable instead.
Code:
Dim objLocs(1 To 5) As MapPoint.Location
When i try to use the standard VB way to create a dynamic array :
Code:
Dim objLocs() As MapPoint.Location, PPCount as integer 
PPCount = 10 
Redim objlocs(PPcount)
I always get an error on the line where the polyline is added.
Code:
mymap.shapes.addpolyline objlocs
My problem is that I want to draw different polylines on my map , depending on data in an access database.
Sorry about my bad english, I hope someone understands my problem and is able to give me some advice.

Thanks a lot
Reply With Quote