Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Refresh After A Pushpin Has Been Deleted From the Dataset within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi How can I refresh the map after a pushpin has been deleted from a dataset. I need to display ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Refresh After A Pushpin Has Been Deleted From the Dataset How can I refresh the map after a pushpin has been deleted from a dataset. I need to display only the pushpins left in the dataset on the map. I have to use 'ImportData' method and also using VB6. Thanks in advance. |
| |||
|
Hi, You can delete it like this: Code: pp = map.FindPushpin(ppName);
if (pp != null)
pp.Delete();
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Refresh After A Pushpin Has Been Deleted From the Dataset
Hi I can delete the pushpin but I cannot refresh the map the new map to show the left Pushpins only ID = "John Smith" Set objPin = objMap.FindPushpin(ID) objPin.Select objPin.Delete ?? WHAT CODE TO REDRAW NEW DATASET (after a pushpin delete) map ??? What do I add after the last line 'objPin.Delete' to Redraw the map Currently the deleted pushpin still appear on the map but not in the Dataset i.e "John Smith" does not appear when the Dataset test is done (see below for the dataset test code) Set objDataSet = objMap.DataSets("New Set") Set objRecordset = objDataSet.QueryAllRecords Do Until objRecordset.EOF MsgBox objRecordset.Pushpin.Name objRecordset.MoveNext Loop Thanks |
| |||
|
Hi, The problem you have is probably because of the use of datasets. If you Add or Delete a PushPin it reflect immediatily on the map. So I suggest you forget DataSets (if that is the reason) and control the Pushpins yourself.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| dataset, deleted, pushpin, refresh |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PushPin dataset is saved in .ptm? | PeppeM | MapPoint 2006/2009 Discussion | 1 | 05-06-2006 12:53 PM |
| Event get called when pushpin is deleted | vidyakulkarni | MapPoint 2006/2009 Discussion | 1 | 10-25-2004 09:43 PM |
| Find Nearby Pushpin in dataset | Dazzer | Products: Pushpin Tool, Single State Mapper | 1 | 10-16-2003 03:05 PM |
| Problems with Pushpin dataset | Sylvain | MapPoint 2006/2009 Discussion | 13 | 11-28-2002 07:08 AM |
| Is there any way to refresh just one PushPin Layer.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-27-2001 09:29 AM |
Ibiza Holiday
Visit the party capital of Europe with an Ibiza holiday! Check out the deals online on UlookUbook...