Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Is this possible to SELECT ALL the pushpins ? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I want to delete all the pushpins of a map in one opération ? Is this a SELECT ALL method ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
|
Vincent, Give the a try, it will delete all pushpins on a map. Change MPC with whatever your MapPoint ActiveX control is named ie:(MapPointControl1) Code: Dim objDataSet As MapPointCtl.DataSet
Dim objmap As MapPointCtl.Map
Set objmap = MPC.ActiveMap
For Each objDataSet In objmap.DataSets
objDataSet.Delete
Next
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| |||
|
lets assume that we have created a array Code: savedPushpins:Array[1..210] of Pushpin; savedPushpinCount:integer; if we have created a pushpin, we will save also this to this array and will increment the Counter; Code: savedPushpinCount:=savedPushpinCount+1; savedPushPins[savedPushpinCount]:=mApp.ActiveMap.AddPushpin(mApp.ActiveMap.GetLocation(loc_y,loc_x,0),ship_name); Code: procedure TFmain.delete_pushpins; var i:integer; begin for i:=1 to savedPushpinCount do begin savedPushPins[i].Delete; end; savedPushpinCount:=0; end; hope this helps |
![]() |
| Tags |
| pushpins, select |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Disable Just 'Select a Place' | jnarissi | MapPoint 2006/2009 Discussion | 10 | 02-02-2008 02:54 AM |
| I need to select from more than eight colors | BobFromBoston | MapPoint 2006/2009 Discussion | 2 | 03-01-2006 05:58 PM |
| Select a place | jimsirv | MapPoint 2006/2009 Discussion | 1 | 07-29-2004 08:04 PM |
| Can't select postal code | TLR74 | MapPoint 2006/2009 Discussion | 0 | 06-01-2004 04:29 PM |
| Select pushpins list | tanguy_laverdure | MapPoint 2006/2009 Discussion | 0 | 02-20-2004 08:59 AM |
Bodrum Holiday
Check out the picturesque towns on your Bodrum holiday... Book through UlookUbook!