Community of VE/MapPoint Users and Developers
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, ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| MapPoint and vb 6 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? |
| |||
|
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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
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!