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
Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Easy way to reverse order with code

This is a discussion on Easy way to reverse order with code within the MapPoint Desktop Discussion forums, part of the Map Forums category; Good, can you show me how to step through the pushpins in the dataset and address the ballonstate in each ...

  1. #11
    PMACAFEE is offline Member Yellow Belt
    Join Date
    Dec 2004
    Posts
    41

    Re: Easy way to reverse order with code

    Good, can you show me how to step through the pushpins in the dataset and address the ballonstate in each one?

    I put some pseudo code in one of the posts above, but I really do not know how.

    Thanks

  2. #12
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Easy way to reverse order with code

    Hi,

    Code:
        object o = 1;
        RecordSet rs = MP.ActiveMap.DataSets.get_Item(ref o).QueryAllRecords();
        while (!rs.EOF) {
    	switch (rs.Pushpin.BalloonState) {
    	    case GeoBalloonState.geoDisplayBalloon:
    		Console.WriteLine(rs.Pushpin.Name + " has balloon");
    		break;
    	    case GeoBalloonState.geoDisplayName:
    		Console.WriteLine(rs.Pushpin.Name + " has name");
    		break;
    	    case GeoBalloonState.geoDisplayNone:
    		Console.WriteLine(rs.Pushpin.Name + " has no balloon");
    		break;
    	}
    	rs.MoveNext();
        }

  3. #13
    PMACAFEE is offline Member Yellow Belt
    Join Date
    Dec 2004
    Posts
    41

    Re: Easy way to reverse order with code

    I am not sure about the actual syntax. My pseudo code above was to illustrate my thinking but probably will not run. Can you show me the steps?

  4. #14
    PMACAFEE is offline Member Yellow Belt
    Join Date
    Dec 2004
    Posts
    41

    Re: Easy way to reverse order with code

    Sorry - posting error!

    IE caching issue caused your reply to not show.

  5. #15
    PMACAFEE is offline Member Yellow Belt
    Join Date
    Dec 2004
    Posts
    41

    Re: Easy way to reverse order with code

    Wilfried
    Wow, your example allows me to keep the balloons and drop the names and not worry about record numbers!

    Thanks

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Newbie Question: Should be easy, but????
    By terrykrueger in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 04-05-2006, 04:29 PM
  2. [VB6] : Easy question (I think ;-) )
    By Vincent BENNER in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-03-2003, 06:02 AM
  3. I hope this one is easy
    By cenwesi in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-04-2002, 07:37 PM
  4. Is there an easy way to change the start and end t....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-19-2002, 01:49 PM
  5. Is there an easy way for me to just display the 48....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-12-2002, 05:08 PM

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