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

How to find pushpinobject in DataSet?

This is a discussion on How to find pushpinobject in DataSet? within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi MP users, Yeah I know, I ask a lot, but please, be patient with me. Well I was looking ...

  1. #1
    VC_Man is offline Member Green Belt
    Join Date
    Nov 2006
    Posts
    93

    How to find pushpinobject in DataSet?

    Hi MP users,

    Yeah I know, I ask a lot, but please, be patient with me.

    Well I was looking for info how to get the right pushpinobject in a dataset using the pushpin's name. But in DataSet I couldn't find a method which makes this possible. So I found out that I might need the RecordSet. And with RecordSet I came to a dead end.

    My situation is like this: In my Dataset I've for example 200 pushpins saved in it, each pushpin has a name accoording to a number. Now as a user I want to select one of those 200 pushpins on the map which than appears the adres and time in the balloon. How can I achieve that?

    I thought I just use the Map.Select() which returns a Pushpin object, if a pushpin is selected and than do: SelectPushpin.GetNote(), which returns a string, with the needed info.

    So whatever DataSet the pushpin belongs to, when I select it on the map, mappoint automagically returns the right pushpinobject with all its information, is that right??


    Thnx for help.

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

    Re: How to find pushpinobject in DataSet?

    Hi,

    No problem, just ask, that's wy the forum is for

    It is not a Dataset method, but ActiveMap method: FindPushpin(string Name) returns the pushpin with the given name.

  3. #3
    VC_Man is offline Member Green Belt
    Join Date
    Nov 2006
    Posts
    93

    Re: How to find pushpinobject in DataSet?

    Well ok,

    But suppose I've 3 pushpins with the SAME name, BUT each belongs to another DataSet! Than which of the 3 pushpins will I get??

    I thought the one with the current DataSet, or......Mappoint checks also the Lat/Lon to which the pushpin belongs, actually I don't know.


    But what I mean is that if I have for example 30 pushpins, with 3 DataSet's, each containing 10 pushpins and they are all displayed on the map. Will MP check the name of a Pushpin, while there are 2 other pushpins with the same name, except that they belong to other two DataSet's? So, how is that?

    I hope you understand what I mean

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

    Re: How to find pushpinobject in DataSet?

    Hi,

    I never tryed to try FindPushpin method in another dataset as My Pushpins. I think it works. However if you dont have exclusive names for each pushpin it will not work. I've always used exclusive names.

    But a good approach is also to use a linked list where you keep all references for your pushpins in. Then you dont need mappoint methods to find them and you have control in your own program

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. dataSet.zoomTo()
    By chpw in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 05-17-2006, 08:05 AM
  2. Creating New Dataset
    By Yazzy in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 08-23-2005, 08:20 AM
  3. Get "find nearby" search DataSet?
    By Nostradamus in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-10-2004, 05:20 AM
  4. Find Nearby Pushpin in dataset
    By Dazzer in forum Products: Pushpin Tool, Single State Mapper
    Replies: 1
    Last Post: 10-16-2003, 04:05 PM
  5. Find Record in Dataset from selected Pushpin
    By neomoon in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-11-2003, 08:49 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 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