MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




mappoint from PB

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-15-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
mappoint from PB

How do i trap error from mappoint ?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 08-16-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 08-19-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
But i am calling Mappoint as external applicaton. SO i need a way to check the validity before i call that function. Bcz, error comes before i check for the returned value.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 08-19-2002
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,480
Blog Entries: 1
You might try calling a MapPoint COM Add-in instead.. not trivial, but would be one way to attack the problem.
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
mappoint


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 03:19 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54