Community of VE/MapPoint Users and Developers
This is a discussion on How to find pushpinobject in DataSet? within the MapPoint 2006/2009 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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to find pushpinobject in DataSet? 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. |
| |||
| 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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| 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 |
| |||
| 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
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| dataset, find, pushpinobject |
| ||||
| Posted By | For | Type | Date | |
| Accuracy With OSGB Grid References - MapPoint Articles - MP2K Magazine | This thread | Refback | 01-16-2007 01:17 AM | |
| MapPoint User Community - MP2K Magazine | This thread | Refback | 01-13-2007 03:14 PM | |
| Microsoft MapPoint 2006 - MP2K Magazine | This thread | Refback | 01-09-2007 03:22 PM | |
| What's New in Streets and Trips 2006 - MapPoint Articles - MP2K Magazine | This thread | Refback | 01-08-2007 07:15 PM | |
| Pushpin Tool Add-in - MP2K Magazine | This thread | Refback | 01-05-2007 07:00 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| dataSet.zoomTo() | chpw | MapPoint 2006/2009 Discussion | 4 | 05-17-2006 08:05 AM |
| Creating New Dataset | Yazzy | MapPoint 2006/2009 Discussion | 4 | 08-23-2005 08:20 AM |
| Get "find nearby" search DataSet? | Nostradamus | MapPoint 2006/2009 Discussion | 0 | 08-10-2004 05:20 AM |
| Find Nearby Pushpin in dataset | Dazzer | Products: Pushpin Tool, Single State Mapper | 1 | 10-16-2003 04:05 PM |
| Find Record in Dataset from selected Pushpin | neomoon | MapPoint 2006/2009 Discussion | 1 | 09-11-2003 08:49 AM |