MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




My Pushpins set has pushpins after using .MoveTo

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


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-07-2008
Junior Member
White Belt
 
Join Date: Aug 2007
Posts: 2
My Pushpins set has pushpins after using .MoveTo

for (inti = 0; i < alPostalCodes.Count; i++)
{
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
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 02-09-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
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.
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 02-11-2008
Junior Member
White Belt
 
Join Date: Aug 2007
Posts: 2
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
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 02-12-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 787
Blog Entries: 5
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
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


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/my-pushpins-set-has-pushpins-after-using-moveto-7106.html

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

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


All times are GMT -5. The time now is 01:44 PM.


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

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.


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