Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Validate Address String within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Using Mappoint 2002 and VB 6.0 I have created a simple program to provide drivers with a route when they ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Validate Address String |
| |||
|
you have to validate address before sending it. you can use FindAddressResults method of map object of Mp2k2 object.FindAddressResults([Street], [City], [OtherCity], [Region], [PostalCode], [Country]) the function will return results. Then you will control if the address exists is. if not exists. then you must say to user to correct the address. MAybe you can give correct address. OR you can return to user the postal code that is missed. Just think abut it. Hope it helps. example pasted from microsoft reference: 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 |
![]() |
| Tags |
| address, string, validate |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remember to validate your geo-locations... | Winwaed | MapPoint 2006/2009 Discussion | 3 | 01-13-2006 12:41 PM |
| MappointControl OpenMap filename string length limitation | malejo | MapPoint 2006/2009 Discussion | 1 | 07-02-2005 02:55 AM |
| Drawing contour lines from nodes in a string file | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-29-2003 09:30 AM |
| Getting Lat/Lon from a given address | Anonymous | MapPoint 2006/2009 Discussion | 5 | 09-12-2003 03:01 PM |
| Create UDL from a connect string with code | kdybvik | MapPoint 2006/2009 Discussion | 1 | 08-23-2002 12:31 PM |
Sharm El Sheikh Holiday
Enjoy the hot sun and fantastic beaches on your Sharm El Sheikh holiday! Check out the UlookUbook online offers...