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

FindPlaceResults, I need Help!!!

This is a discussion on FindPlaceResults, I need Help!!! within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello, I've just a little problem with find methods. I've got Mappoint 2004 Italian versione for Europe, but it seems ...

  1. #1
    lucaceleghin is offline Junior Member White Belt
    Join Date
    May 2005
    Posts
    3

    FindPlaceResults, I need Help!!!

    Hello,
    I've just a little problem with find methods. I've got Mappoint 2004 Italian versione for Europe, but it seems to have some problem when I use the find method. For example I use this simple code in VB6:

    Private Sub Form_Load()
    Dim objApp As New MapPoint.Application
    Dim objFindResults As MapPoint.FindResults
    Set objFindResults = objApp.ActiveMap.FindResults("Parigi, Francia")
    End Sub

    But objfindresults is empty: It doesn't find anything!!!!
    I've tried other method Find PlaceResults FindAddressResuls etc. but the results is the same. There seems to be a problem with language...

    Does anyone ha encountered a similar problem?
    Thank you

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

    What happens if you try to find the same in the mappoint application itself ?

  3. #3
    lucaceleghin is offline Junior Member White Belt
    Join Date
    May 2005
    Posts
    3
    Hi Wilfried, thank you for answering.
    It returns 27 hints (the results are correct)! So the application run correctly... but when I try to use the findResults, or findplaceresults or findaddressresults It gives no answer!
    The same happens when I try to look for "Londra, Regno Unito" or something similar: no answer!
    I hope you could help me...
    thank you
    bye

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

    I see following in your code (sorry I did not see it before):

    Code:
    Dim objApp As New MapPoint.Application
    Dim objFindResults As MapPoint.FindResults
    Set objFindResults = objApp.ActiveMap.FindResults("Parigi, Francia")
    But you dont load a map first ! Please check objFindResulsts, it is probalby Nothing ! So you first have to load a map before you can access ActiveMap. Strange, I should expect there would be an exception error !

  5. #5
    lucaceleghin is offline Junior Member White Belt
    Join Date
    May 2005
    Posts
    3

    FindPlaceResults

    Hi Wilfried, thank you for answering,
    Just to say that I found the following code in Mappoint 2004 help:

    Dim objApp As New MapPoint.Application
    Dim objFindResults As MapPoint.FindResults
    Set objFindResults = objApp.ActiveMap.FindResults("Parigi, Francia")

    The object objfindResults is not Nothing and more, the result is that objFindResults.count=0.

    When I use the same procedue for other city for example "Roma" or other italian cities, objfindresults contains many records... so I think that the code is right. I think it should be a problem with language but I don't know what....

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

    Yes then the code must be right, sorry for misleading. Further I have no idea, I have english europe version, but I tryed same as you with 0 results, but also not in the map itself. Then I tryed this in map and in code and I got 46 and 72 results:

    Code:
                FindResults results = MP.ActiveMap.FindResults("Parigi, Italy");
                Console.WriteLine(results.Count.ToString());
                results = MP.ActiveMap.FindResults("Francia, Italy");
                Console.WriteLine(results.Count.ToString());

  7. #7
    MartinH is offline Junior Member White Belt
    Join Date
    Jul 2006
    Posts
    2

    Post same problem as you

    Hi lucaceleghin,
    i have the german version of MapPoint and I have the same problem as you have. At MapPoint it self i get results, but in code I don't. But some searchrequests work, for example if I search for "München, Deutschland" it works and also "Munich, Germany" works.
    I also guess that this problem is involved with the language. I'm sorry, I can't help you, but i can tell you, you're not the only one

  8. #8
    Fabio is offline Junior Member White Belt
    Join Date
    Oct 2005
    Posts
    9
    Hi lucaceleghin,

    If I correctly understand in your case you are searching not for an address but for a place.
    So in this case it should be more correct try with:
    Code:
    FindPlaceResults("Parigi, Francia")
    Bye!!

  9. #9
    Fabio is offline Junior Member White Belt
    Join Date
    Oct 2005
    Posts
    9
    I'm sorry I didn't saw that you already tried with FindPlaceResult function.

    It appears that search have quite correct results only when country is in english like "Parigi, France" or "Londra, United Kingdom".

    May be MapPoint 2006 EU don't have this problems. We hope!

    Byeee

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FindPlaceResults() method fails to return complete addresses
    By Fer in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-13-2003, 04:33 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