Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

Is this possible to SELECT ALL the pushpins ?

This is a discussion on Is this possible to SELECT ALL the pushpins ? within the MapPoint Desktop 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 ...

  1. #1
    Vincent BENNER's Avatar
    Vincent BENNER is offline Member Yellow Belt
    Join Date
    Sep 2002
    Posts
    44

    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

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    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

  3. #3
    yelmaci is offline Junior Member White Belt
    Join Date
    Dec 2002
    Posts
    7
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Disable Just 'Select a Place'
    By jnarissi in forum MapPoint Desktop Discussion
    Replies: 10
    Last Post: 02-02-2008, 02:54 AM
  2. I need to select from more than eight colors
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 03-01-2006, 05:58 PM
  3. Select a place
    By jimsirv in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-29-2004, 08:04 PM
  4. Can't select postal code
    By TLR74 in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-01-2004, 04:29 PM
  5. Select pushpins list
    By tanguy_laverdure in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-20-2004, 08:59 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83