Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mapit service
Message
 
À
25/02/2007 16:51:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01198680
Message ID:
01198710
Vues:
7
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform