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 ?