Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Viewing street addresses from vfp
Message
From
30/07/2014 17:22:44
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Viewing street addresses from vfp
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01604983
Message ID:
01604983
Views:
83
I need the code to show a street map on a form.
The way this should work is, a user enters an address in a textbox, then
VFP determines which is the default browser
It looks up the address and shows the corresponding map.
I tried the following code:

I placed a Microsoft Web Browser control on a form (I named it oWeb)

Local cAddress
cAddress = Alltrim(thisform.text1.Value)
thisform.oWeb.navigate( "http://maps.google.com/maps?q="+Chrtran(Alltrim(cAddress)," ","+"))

The above code shows the street map as in Google maps, inside the oWeb control on the form.

I need a similar code if the default browser is Fire Fox or Internet Explorer
Rafael Copquin
Treasurer - Microsoft Users Group of Argentina (MUG)
www.mug.org.ar
Next
Reply
Map
View

Click here to load this message in the networking platform