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

Addressing 1 pushpin

This is a discussion on Addressing 1 pushpin within the MapPoint Desktop Discussion forums, part of the Map Forums category; I'm working on an application which uses Access and Mappoint to plan transport. On the left screen I have an ...

  1. #1
    bvv
    bvv is offline Junior Member White Belt
    Join Date
    Sep 2003
    Posts
    1

    Addressing 1 pushpin

    I'm working on an application which uses Access and Mappoint to plan transport. On the left screen I have an access form with all destinations (up to 200). On the right screen I have a mappoint map which shows all destinations. So far, so good.
    Now I want to highlight the destination choosen on the left screen. Do I really have to run to the entire recordset of the dataset or can I address the pushpin directly. All pushpins have a name depending on certain values in my access database.

  2. #2
    Fer
    Fer is offline Junior Member White Belt
    Join Date
    Jun 2003
    Posts
    11
    200 pushpins don't sound like too much burden to have their references in memory. What I would recommend you to do is have some sort of a hashtable, that you can refer to it by a unique id and get the reference of the corresponding pushpin. This way you will always have in hand the pushpin that you are referencing on the left side, and it'll be much faster than querying MP's recordsets.

    I think maybe a collection can be referenced by a specific key, I haven't done much VB programming in a while.

    HTH


    Fernando


    P.S. You will need a way to gather the references first, and this may or may not be as slow as querying the recordsets, depending on the methods you choose.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Finding Pushpin Name by clicking on the Pushpin?(MP 2002)
    By NickSP in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-10-2003, 01:11 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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96