PDA

View Full Version : addpolyline



Anonymous
04-09-2003, 05:07 PM
I want to draw a shape witch connects existing pushpins from VB code.
I created an array (dim objloc(10)) to store my locations and filled my array . Set obj(i) = objmap.getlocation(latitude,longitude)
Next i try to create the shape objmap.shapes.addpolyline objloc. But the I get an error -2147024809 (80070057) Wrong Parameter
I used the example from the programming help topic. The only thing I changed was that I used getlocation instead of Findresult becaus I know the exact latitude and logitude of the pushpins.
Can anyone help me ?

Jade
04-10-2003, 02:19 AM
I also get this error sometimes.. don't know what it means.. I am very curious too!

Anonymous
04-25-2003, 03:50 PM
That sometimes happens if you declared an array of 10 and you don't fill all the elements of the array, in this case, you should verify that all your 11 spaces available in your array have MapPoint.Location objects assigned to them.