Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapit service
Message
 
To
25/02/2007 16:51:15
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01198680
Message ID:
01198710
Views:
8
>How can I implement into my app the ability to map my customer’s address. As simple as it sounds an activex or ocx that receives the address as parameter and displays the map.

You could buy a package like MS MapPoint and include the ocx, or you can subclass IE and use one of the mapping websites, if your users have internet access.

Here are couple of options on the google solution:
oie = Createobject('internetexplorer.application')
lcurl=[http://maps.google.com/]
oie.navigate(lcurl)
DO WHILE oie.readystate()<>4
ENDDO
DO WHILE oie.document.readystate()<>'complete'
ENDDO
Do While oie.busy
Enddo
oie.Document.forms('q_form').q_d.value='201 Poplar Ave, Memphis, TN'
oie.Document.forms('q_form').q_sub.click()

another method is to pass the address in the querystring
lca=[201+Poplar+Ave,+Memphis,+TN]
lcurl=[http://www.google.com/maps?q=]+lca+[&sa=X&oi=map&ct=title]
oie.navigate(lcurl)
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Reply
Map
View

Click here to load this message in the networking platform