MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to find pushpinobject in DataSet?

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (5) Thread Tools Display Modes
  5 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 01-04-2007
Member
Green Belt
 
Join Date: Nov 2006
Posts: 87
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2007
Member
Green Belt
 
Join Date: Nov 2006
Posts: 87
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
dataset, find, pushpinobject


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/how-find-pushpinobject-dataset-5546.html

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 04:16 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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