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 2 of 2

AddPolyLine (s) array problem

This is a discussion on AddPolyLine (s) array problem within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I produce a lot of DriveTimeZones in MapPoint 2006 by VB6-code and I stored all vectors of the polygones ...

  1. #1
    FreddyD is offline Junior Member White Belt
    Join Date
    Dec 2006
    Location
    Cologne in Germany
    Posts
    4

    Question AddPolyLine (s) array problem

    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?

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: AddPolyLine (s) array problem

    Hi,

    You can use AddLine method. Then you are free in the needed capacity.

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. SetFieldsVisibleInBalloon - how do I set up the array
    By jtowell in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 05-16-2005, 01:59 PM
  3. Drawing a polyline with Visual Basic Net - Array problem
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-24-2005, 05:16 PM
  4. Addpolyline , Array , Visual Basic and Other languages
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 08-26-2004, 04:58 AM
  5. addpolyline
    By Anonymous in forum Wish List
    Replies: 2
    Last Post: 04-25-2003, 04:50 PM

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 26 27