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

Check if a waypoint and a pushpin exist

This is a discussion on Check if a waypoint and a pushpin exist within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi to all! How can i check if a waypoint or a pushpin is already added on the map?...

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

    Check if a waypoint and a pushpin exist

    Hi to all!
    How can i check if a waypoint or a pushpin is already added on the map?

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

    Re: Check if a waypoint and a pushpin exist

    Quote Originally Posted by MrBaba750
    Hi to all!
    How can i check if a waypoint or a pushpin is already added on the map?
    I'm using Visual Basic.net

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

    Re: Check if a waypoint and a pushpin exist

    Quote Originally Posted by Anonymous
    Quote Originally Posted by MrBaba750
    Hi to all!
    How can i check if a waypoint or a pushpin is already added on the map?
    I'm using Visual Basic.net
    Hi there,

    a waypoint object has a name property, and the waypoints-object has an index. same for the pushpin object. you could go through the listing with:

    Dim wp as Waypoint
    Dim objmap as Map

    Set objmap = Mappoint.ActiveMap

    With objmap.ActiveRoute

    For Each wp In .Waypoints
    If wp.Name = waypoint_i_want_to_add.Name Then
    'waypoint already there
    End If
    Next
    End With


    HTH
    Syd

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Prevent Pushpin/Waypoint deletion
    By EdB in forum MapPoint Desktop Discussion
    Replies: 8
    Last Post: 08-17-2005, 11:55 AM
  2. Sanity Check Please......Pushpin help
    By EdB in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 02-22-2005, 08:44 AM
  3. How know if a pushpin exist ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 07-01-2004, 04:05 AM
  4. Check error with VBA before adding pushpin
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 03-24-2004, 10:36 AM
  5. Help file says MapPointCtl, it doesn't exist
    By JPeters in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 08-02-2002, 03:16 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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66