Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
LPARAMETERS tcURL
oBrowser = CREATEOBJECT("internetexplorer.application")
oBrowser.navigate(tcURL)
oBrowser.visible = .t.
LPARAMETERS lcStreet,lcCity,lcState,lcZip,lcCountry
IF EMPTY(lcStreet)
lcStreet = ""
ENDIF
IF EMPTY(lcState)
lcState = ""
ENDIF
IF EMPTY(lcZip)
lcZip = ""
ENDIF
IF EMPTY(lcCountry)
lcCountry = "US"
ENDIF
IF EMPTY(lcCity)
lcCity=""
ENDIF
this.searchurl("http://www.mapquest.com/maps/map.adp?country=" + ;
lcCountry + "&addtohistory=&address=" + ;
this.UrlEncode(lcStreet) + ;
"&city=" + this.UrlEncode(lcCity) + "&state=" + ;
this.UrlEncode(lcState) + "&zipcode=" + ;
this.UrlEncode(lcZip) + "&homesubmit=Get+Map&size=big")
LPARAMETERS tcValue, llNoPlus
LOCAL lcResult, lcChar, lnSize, lnX
lcResult=""
FOR lnX=1 to len(tcValue)
lcChar = SUBSTR(tcValue,lnX,1)
IF ATC(lcChar,"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") > 0
lcResult=lcResult + lcChar
LOOP
ENDIF
IF lcChar=" " AND !llNoPlus
lcResult = lcResult + "+"
LOOP
ENDIF
lcResult = lcResult + "%" + RIGHT(transform(ASC(lcChar),"@0"),2)
ENDFOR
RETURN lcResult
oMap = NEWOBJECT("mapquest.internet")
oMap.ShowDestination("134 ave Willobank","Pointe-claire","QC",;
"H9R3K8","CA")