MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




MapPoint and vb 6

This is a discussion on MapPoint and vb 6 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have a vb 6 app that references MapPoint and uses the following code. Set oFindResults = oMap.FindAddressResults(NonEmptyField(rs!Addr1, ""), NonEmptyField(rs!City, ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2006
Junior Member
White Belt
 
Join Date: Sep 2005
Posts: 3
MapPoint and vb 6

I have a vb 6 app that references MapPoint and uses the following code.

Set oFindResults = oMap.FindAddressResults(NonEmptyField(rs!Addr1, ""), NonEmptyField(rs!City, ""), NonEmptyField(Left(rs!State, 2), ""))
If oFindResults.ResultsQuality = geoFirstResultGood Then
Set oPushPin = oMap.AddPushpin(oFindResults.Item(1), rs!CardNo)
oPushPin.BalloonState = geoDisplayName
lCountMappedMembers = lCountMappedMembers + 1

It works fine as long as the street address and the city and the state are correct. If it can't match exactly the street+city+state then a get an object required error on the FindAddressResult line. How can I work around this?
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 01-18-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Hi,

If there is no matching address then the Resultsquality is GeoNoGoodResult or GeoNoResult. I never saw FindAddressResults generating an exception wen it cannot find a match.

But what does NonEmptyField() do ? I have some suspician it had something to do with that. Please explain this function.
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


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


All times are GMT -5. The time now is 02:44 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

Turkey Cheap
Trips to Turkey are cheap when you book with Holiday Hypermarket. Sunshine, nightlife, cuisine and culture, Turkey has got it all.

Honeymoon Holidays
Whatever honeymoon holiday you have in mind - be it a dream beach honeymoon in the Maldives or a Caribbean Honeymoon cruise - Travel Counsellors can help.

Cheap Flights to Cape Town
Here at dealchecker.co.uk we’ll shop around for cheap flights to Cape Town so you don’t have to. Find and Compare prices from over twenty UK travel agents with just one search.

Egypt Holidays
Visit one of the most spectacular sightseeing destinations in the world with The Holiday Place. Egypt holidays provide a fantastic break!

Canaries
Find out all about the Canaries when you check out the ulookubook.com travel guides. Not only can you get a great holiday deal but you can find out useful information about potential holiday destinations.

Holiday Comparison
We can help you with holiday comparison when you check out the options at Travel.co.uk

Cheap Fuerteventura Holidays
Enjoy the deep sands of the Canary Islands. Find cheap Fuerteventura holidays 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