Community of VE/MapPoint Users and Developers
This is a discussion on Getting 'second' street address within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi all, for some coords, I get a "choice of street addresses. For example: N51:02:20,9 E04:28:21,4 returns these street addresses: ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Getting 'second' street address for some coords, I get a "choice of street addresses. For example: N51:02:20,9 E04:28:21,4 returns these street addresses: N1 53 , 2800 Mechelen and Oscar Van Kesbeeckstraat 53, 2800 Mechelen In my code I want to use the second option whenever there is a choice of addresses. How do I do that in VB 6.0 code? thx, James |
| ||||
|
Look at this example from the help file. You could test for the presence of a sccond item (objFindResults.Item(2).Name) and if it exists do something with it. Code: Sub FindAddressSearch()
Dim objApp As New MapPoint.Application
Dim objFindResults As MapPoint.FindResults
'Set up application
objApp.Visible = True
objApp.UserControl = True
'Output first result of find search
Set objFindResults = objApp.ActiveMap.FindAddressResults("One Microsoft Way", "Redmond", , "WA", , geoCountryUnitedStates)
MsgBox "The first item in the find list is: " _
+ objFindResults.Item(1).Name
End Sub
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| address, econd, street |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| street address from lat/lon... VB style | Anonymous | MapPoint 2006/2009 Discussion | 3 | 06-09-2005 02:12 PM |
| Has anyone got street address with MapPoint Euro 2004? | Anonymous | MapPoint 2006/2009 Discussion | 8 | 02-09-2005 09:13 AM |
| GeoRoadType from Street Address | Anonymous | MapPoint 2006/2009 Discussion | 0 | 01-25-2004 06:22 AM |
| Converting longtitude and lattidue into street address | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-26-2003 06:24 AM |
| street address limit | bob | MapPoint 2006/2009 Discussion | 5 | 11-04-2003 08:51 AM |