Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use MapInfo's Mapmarker Geocoding with VFP
Message
From
15/11/2002 18:14:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
How to use MapInfo's Mapmarker Geocoding with VFP
Miscellaneous
Thread ID:
00723501
Message ID:
00723501
Views:
166
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.

No such special treatment for VFP, unfortunately ... :^) ...

Any advice and/or sample program/form/subclass code would be appreciated.

Thanks,
Richard Summers
richard@rasgroup.com
Next
Reply
Map
View

Click here to load this message in the networking platform