How can i check if an address is valid or not?
This is a discussion on How to check if an address is valid? within the MapPoint Desktop Discussion forums, part of the Map Forums category; How can i check if an address is valid or not?...
How can i check if an address is valid or not?
Here is a sample you can try, hope it helps. I'm using Visual Basic 6 with the ActiveX Control on my form Named MPC. The ADDR, CITY, ST and ZIP would be your variables.
Dim objmap As MapPointCtl.Map
Set objmap = MPC.ActiveMap
Dim objloc As MapPointCtl.Location
Set objLoc = objmap.FindAddress(ADDR, CITY, ST, ZIP, geoCountryUnitedStates)
If objLoc Is Nothing Then
Msgbox "Can't find address"
End if
John
http://www.support-pc.com
Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
You can also use the FindResults property. Samples in the Help File
There are currently 1 users browsing this thread. (0 members and 1 guests)