Community of VE/MapPoint Users and Developers
This is a discussion on Custom DataSet and adding Pushpin??? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; There might be a better way of doing this (and if so please let me know). But what I am ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| I'm working in Visual Basic 2005. In a module I've got this code: Code: Public mpStores As MapPoint.DataSet Code: mpStores = objMap.DataSets.AddPushpinSet("My Stores")
Code: Dim dt As DataTable = Nothing
Dim objLoc As MapPoint.Location = Nothing
Dim objPP As MapPoint.Pushpin = Nothing
Dim objSym As MapPoint.Symbol = Nothing
For i = 0 To dt.Rows.Count - 1
objPP = objMap.AddPushpin(objLoc)
objPP.Name = dt.Rows(i).Item("upName").ToString.Trim
objSym = objMap.Symbols.Add(Application.StartupPath + "\images\" & dt.Rows(i).Item("upImage").ToString.Trim)
objPP.Symbol = objSym.ID
objPP.MoveTo(mpStores)
Next
Quote:
Thank you in advance for any/all help/suggestions/idea's/thoughts/etc. It is very much appreciated. Last edited by OOT; 03-10-2008 at 02:42 PM. Reason: because I'm an idiot |
| |||
| Re: Custom DataSet and adding Pushpin??? OK. My bad. I found the problem. The code I posted is working. But I was calling the database hit (which fills the new DataSet) before I instantiated the new DataSet (in Form_Load). ![]() So now I'm going to go flush my head and then consider the appropriate method of hari-kari ![]() I'm going to mark this resolved and then go hide in shame. Self Esteem and Pride |
| |||
| Re: Custom DataSet and adding Pushpin???
OOT, This is a newsgroup and you showed some effort. Nothing to feel bad about. Mike Mattys |
![]() |
| ||||
| Posted By | For | Type | Date | |
| MapPoint: Blogs, Photos, Videos and more on Technorati | This thread | Refback | 04-10-2008 11:39 PM | |
| Custom DataSet and adding Pushpin??? - MapPoint Forums | This thread | Refback | 03-29-2008 08:56 AM | |
| Calling MapPoint From C++ Without the MFC Safety Net - MapPoint Articles - MP2K Magazine | This thread | Refback | 03-12-2008 06:23 PM | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 03-10-2008 10:47 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding own custom pane on the left of winwod | hegdek | MapPoint 2006/2009 Discussion | 1 | 12-01-2006 08:20 AM |
| Adding custom symbols located on the internet | dave17 | MapPoint 2006/2009 Discussion | 4 | 11-25-2006 12:36 PM |
| Adding custom field to a Pushpin | marcocim | MapPoint 2006/2009 Discussion | 1 | 06-12-2005 04:13 PM |
| Adding custom pushpin symbol | M.Vrolijk | MapPoint 2006/2009 Discussion | 2 | 09-20-2004 06:55 AM |
| Adding custom pushpins to the pushpin selection | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-28-2003 03:28 PM |
Ski Package Holidays
Search the latest ski package holidays in just a few clicks. The Holiday Hypermarket ski holiday search will show you what the top travel brands have to offer you.
Flights to Greece
Find cheap flights to Greece on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Greece.
Cheap Flights to Cape Town
Here at dealchecker.co.uk we’ll shop around for cheap flights to Cape Town so you don’t have to. Find and Compare prices from over twenty UK travel agents with just one search.
Egypt Holidays
Visit one of the most spectacular sightseeing destinations in the world with The Holiday Place. Egypt holidays provide a fantastic break!
Turkey
Before booking a holiday to Turkey check out the ULookUBook travel guide. Find out about the rich culture in Turkey before you go there to help you to make the most of your holiday.
Travel Guides
As far as travel guides are concerned, your best move would be to check out our website at Travel.co.uk
Cheap Holidays in Gran Canaria
Would you like to visit the Canary Islands, but you're on a budget? Get information on cheap holidays in Gran Canaria at On The Beach.