MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Searching pushpin sets in C#

This is a discussion on Searching pushpin sets in C# within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have read through many posts on this forum, and I can not figure out why this does not work. ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Searching pushpin sets in C#

I have read through many posts on this forum, and I can not figure out why this does not work. I have three pushpin sets, and I want to search one particular set for a certain pushpin. I have declared all the datasets and recordsets variables but I can not figure out how to select which pushpin set I want to look through.

MapPoint.Location loc;
MapPoint.DataSets DSets = axMappointControl1.ActiveMap.DataSets;
MapPoint.DataSet Dset = axMappointControl1.ActiveMap.DataSets(???)
MapPoint.Recordset RSet = Dset .QueryAllRecords();


That is the part of the code I am referring to, but I dont know what goes where the question marks are. I thought i could use .Item but it does not work. Im new to mappoint, so Im probably missing something obvious, but I cant figure it out. Any help would be appriciated.
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-17-2005
Junior Member
White Belt
 
Join Date: Jan 2005
Posts: 3
I use the following syntax to access MapPoint collections:
Code:
object index = "dataset name";
DataSet  ds = m_Map.DataSets.get_Item(ref index);
It's a bit odd, but it works.
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-17-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,017
Hi,

This access the dataset by number (it starts at 1 instead of 0):
Code:
            object o = 1;
            MP.ActiveMap.DataSets.get_Item(ref o);
This is by name:
Code:
            object o = "My other pushpins";
            MP.ActiveMap.DataSets.get_Item(ref o);
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-17-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I just wanted to thank you both for your help. Your suggestions worked great. I knew it had to be something simple that I wasn't seeing. You guys saved me hours and hours of trying to figure it out.

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


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
Address Searching Anonymous MapPoint 2006/2009 Discussion 0 01-07-2005 08:07 AM
Showing/hiding pushpin sets Anonymous MapPoint 2006/2009 Discussion 3 11-23-2004 03:33 PM
pushpin sets pick random spot NOT correct address????? Anonymous MapPoint 2006/2009 Discussion 0 08-15-2004 12:53 AM
Searching by Entity ID the_jock MapPoint 2006/2009 Discussion 1 01-29-2004 08:37 AM
joining pushpin sets tommigo MapPoint 2006/2009 Discussion 1 04-01-2003 05:21 AM


All times are GMT -5. The time now is 11:35 PM.


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

Ski Holidays French Alps
Ski holidays in the French Alps are a unique and exciting experience. There are a great range of resorts which are great value when you book with Holiday Hypermarket online.

Cruise Travel Agent
Book your cruise with Travel Counsellors. We are an award winning travel agent and can help plan your perfect cruise.

Jamaica Holiday
Fancy a Jamaica Holiday? Then visit dealchecker.co.uk and find out what the big deal is. Book a bargain when you book online.

Holidays to St Lucia
Holidays to St Lucia will leave you smiling. The spectacular scenery and the warmth of the locals make holidays to St Lucia unforgettable.

Tunisia
Tunisia enjoys excellent weather, golden beaches and a beautiful blue sea. Moving away from the beach you will find a country that has a rich and varied past. Discover the secrets of history yourself by exploring all the ruins.

Bargain Holidays
To plan your holidays at bargain prices, use Travel.co.uk to explore all the possibilities.

Portugal Holidays
We specialise in Portugal holidays. Visit our On The Beach website for more information.


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