MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Is this possible to SELECT ALL the pushpins ?

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


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-25-2002
Vincent BENNER's Avatar
Member
Yellow Belt
 
Join Date: Sep 2002
Posts: 41
Is this possible to SELECT ALL the pushpins ?

I want to delete all the pushpins of a map in one opération ?
Is this a SELECT ALL method available to do such a request ?

Regards,

Vincent BENNER
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 11-25-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
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 12-04-2002
Junior Member
White Belt
 
Join Date: Dec 2002
Posts: 7
Send a message via ICQ to yelmaci Send a message via MSN to yelmaci
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);
and if i need to delete all the pushpins, i call this function:

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

Tags
pushpins, select


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


All times are GMT -5. The time now is 09:10 AM.


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

Catered Chalet Ski Holidays
Looking for catered chalet ski holidays? Your search is over! Here at Holiday Hypermarket you can choose your style of accommodation with ease.

Luxury Holidays
Luxury holidays, family holidays, ski holidays, cruises. Whatever your holiday needs your personal Travel Counsellor can help.

Turkey Holidays
Istanbul is Turkey's prime attraction as it has the most beautiful mosques and palaces of the country; it has Byzantine churches and Roman temples. Book Turkey Holidays online.

Holidays to Bahamas
Choose from a number of extraordinary holidays to the Bahamas at The Holiday Place. See pictures of these beautiful islands online.

Spain
Spain is such a diverse country that it has something to offer most holidaymakers. Finding delicious cuisine is no challenge and the shopping ranges from designer boutiques to unknown flea markets. Spain has much to offer.

Cheap holiday comparison
Travel.co.uk is a comparison service which makes it easy to search and find your cheap holiday options.

Cheap Holidays to Florida
Cash strapped? Get info on cheap holidays to Florida at On The Beach.


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 52