Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

addpolyline

This is a discussion on addpolyline within the Wish List forums, part of the MapPoint Desktop Discussion category; I want to draw a shape witch connects existing pushpins from VB code. I created an array (dim objloc(10)) to ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    addpolyline

    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 ?

  2. #2
    Jade is offline Junior Member Yellow Belt
    Join Date
    Mar 2003
    Posts
    18
    I also get this error sometimes.. don't know what it means.. I am very curious too!

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    addpolyline

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Shapes.AddPolyline is very slow
    By tdaffin in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-27-2006, 08:08 AM
  2. Addpolyline , Array , Visual Basic and Other languages
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 08-26-2004, 04:58 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25