Community of VE/MapPoint Users and Developers
This is a discussion on My Pushpins set has pushpins after using .MoveTo within the Development forums, part of the MapPoint 2006/2009 Discussion category; for ( int i = 0; i < alPostalCodes.Count ; i ++) { string postalcode = alPostalCodes[i]; MapPoint . Location ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| My Pushpins set has pushpins after using .MoveTo { string postalcode = alPostalCodes[i]; MapPoint.Locationlocation = null; MapPoint.FindResultsfindrs = map.FindAddressResults(null, null, null, null, postalcode, country); if (findrs == null || findrs.Count <= 0) { } else { location = findrs.get_Item(refindex) asMapPoint.Location; if (location != null) { oPin = map.AddPushpin(location, postalcode); oPin.MoveTo(oPPSet); } } } After this code gets done running I will have "My Pushpins" and the name of the custom pushpin set that I added, but My Pushpins should be empty and it's not, anyone have any ideas what's happening here? Thank you, Jamie |
| |||
| Re: My Pushpins set has pushpins after using .MoveTo
Hi, I don't think MoveTo does a delete also. So you have to delete it yourself.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: My Pushpins set has pushpins after using .MoveTo
.MoveTo moves a pin from one set to another, so the set "My Pushpins" should be empty after a .MoveTo call, but for some reason sometimes it looks like the .MoveTo method isnt' called |
| ||||
| Re: My Pushpins set has pushpins after using .MoveTo
I agree "HighHeat". I vaguely remember seeing something like this but it was a long time ago and I can't remember the details. iirc, it was a very small number - perhaps less than 5 out of every few hundred? If it is a timing issue, you could add a small delay (not ideal), or try to split the add and the move into two loops? Did you say this was an addin? If so, you're running in-thread, so timing isn't an issue in theory! Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
![]() |
| ||||
| Posted By | For | Type | Date | |
| Working With Excel and MapPoint - MP2K Magazine | This thread | Refback | 02-10-2008 12:27 PM | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 02-08-2008 08:06 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| obj.MoveTo / abjMap.AddPushpin issue | burnin240sx | MapPoint 2006/2009 Discussion | 2 | 11-16-2007 12:59 PM |
| "My Pushpins" are in Background of the ImportData's pushpins | doMapPoint | MapPoint 2006/2009 Discussion | 3 | 08-23-2007 03:02 PM |
| Creating a subset of Pushpins from a set of pushpins | paf33 | MapPoint 2006/2009 Discussion | 3 | 08-09-2005 04:54 AM |
| My Pushpins !!!!! | Anonymous | MapPoint 2006/2009 Discussion | 6 | 04-14-2003 01:59 AM |
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.
Travel Counselors
Travel Counselors are an award winning Travel Agent. Why not have a personal Travel Counselor help with your travel plans.
Holidays Thailand
Holidays in Thailand are hugely diverse with wonderful luxury resorts and beaches but also some lovely forested mountains with interesting hill tribes. See dealchecker.co.uk.
Holidays in Egypt
A holiday in Egypt will stimulate your mind, captivate your heart and spark your senses. Visit this exceptional country, book today!
Cheap Spain Holidays
Stay well informed when you are searching for cheap holidays online. For useful advice on when to book cheap Spain holidays make sure you look on ulookubook.com
Compare Holidays
Compare holidays online where you can see all the amazing possibilities at Travel.co.uk
Holidays to Portugal
Want to take your family on a summer holiday? Visit On The Beach for more information on holidays to Portugal.