Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use MapInfo's Mapmarker Geocoding with VFP
Message
 
 
To
15/11/2002 18:14:14
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00723501
Message ID:
00723525
Views:
56
Richard,

Fancy meeting you here *g*

can you post a little bit of the VB code, it should be pretty straight forward to translate.

>I would like to use MapInfo's Mapmarker Geocoding product directly with VFP 7.0.
>
>MapInfo provides example code for VB/VBScript & C++ but not for VFP.
>
>I want to call either Mapmarker OCX or OLE server functions to pass address or intersection data then retrieve longitude/latitude information.
>
>Mapmarker provides the ability to batch process a .dbf table with the address information and store long./lat. in designated fields. I want to be able to provide the long./lat. as each record gets entered through a custom VFP Form.
>
>I can use CreateObject() to instantiate the MapMarker Active X control without any carping from VFP. However, when I attempt to pass what, to the best of my knowledge, is legal address information to the GeoAddress() method, it reports "Type Mismatch".
>
>No amount of micro-reviewing and revising the necessary data types for method I/O (string, long, integer, etc.) corrects the error. I even meticulously declare and initialize all numeric output values, since the method cannot "see" the variables otherwise.
>
>I reviewed the VB code fragment for using the control with VB and it seems very straightforward. HOWEVER, special MapMarker provides special methods for VB use that, for the most part, allow VARIANT values.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform