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

FindPushpin fails

This is a discussion on FindPushpin fails within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I'm using the MapPoint 2006 ActiveX control in a .NET 2.0 application. I have a pushpin set of about ...

  1. #1
    dorenstein is offline Junior Member White Belt
    Join Date
    Oct 2006
    Posts
    3

    FindPushpin fails

    Hi,

    I'm using the MapPoint 2006 ActiveX control in a .NET 2.0 application. I have a pushpin set of about 800 uniquely named items. Each has a name like this:

    49.7C.FD.49.FB.80

    After finding about 32 of them, FindPushpin fails quite often but with no discernible pattern except that it fails on the same names each time. The only thing I could find on the web about FindPushpin failing had to do with odd characters or very long names. In another use of FindPushpin that was failing, I tried calling it a second time after it failed once and at least once it succeeded on the second try! Does anyone have any idea what's going on here? Some of the pushpins are physically very close to each other, but as I said, each has a unique name.

    David Orenstein

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

    The problem could be the dots. If you try FindResults it will probably work, but I think it will be slower, you can try out.

    If you have same format in name then you can replace the dots by other character or leave them out eventually.

  3. #3
    dorenstein is offline Junior Member White Belt
    Join Date
    Oct 2006
    Posts
    3
    Wilfried,

    You were right as usual. But it boggles the mind that a Microsoft product that was presumably written to .NET or MFC is incapable of doing a string comparison! (On the other hand it is puzzling that sometimes it works.) Unfortunately, I need the dots in the name, so I'll have to use another method.

    Thanks,

    David

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

    If you really need to display the dots in the name, then you can hold an array of PushPin in your application and do the search there.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FindPushpin(Name)
    By Yazzy in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-17-2005, 06:26 AM
  2. FindPushpin problem
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-29-2004, 09:13 AM
  3. Link Data Wizard fails
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-24-2004, 09:03 PM
  4. QueryAllRecords Fails
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-25-2002, 06:09 PM
  5. QueryAllRecords Fails
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-29-2002, 06: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 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