Community of VE/MapPoint Users and Developers
This is a discussion on mappoint from PB within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; How do i trap error from mappoint ? I am trying to find addresses and pushpin it . But, I ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| mappoint from PB I am trying to find addresses and pushpin it . But, I need a way to check whether the address is valid in mappoint or not, before calling findaddresresults. (valid address is working fine.) But i have some junk in my database. It gives a pb error ' Error accesing external function....' I am calling mappoint with address parameter as a separate application. ( not OLE) TIA Roopa |
| ||||
|
I'm not sure if this is what you are looking for but here is how I would find if the address can be matched in mappoint. 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 |