Function Mappa_google()
local oDlg, oActiveX
local cStreet := PadR( "SAN MARINO", 80 )
local cCity := PadR( "TERAMO", 80 )
local cCountry := PadR( "ITALY", 80 )
DEFINE DIALOG oDlg RESOURCE "MAPPA"
REDEFINE ACTIVEX oActiveX ID 100 OF oDlg PROGID "Shell.Explorer"
REDEFINE GET cStreet ID 200 OF oDlg
REDEFINE GET cCity ID 300 OF oDlg
REDEFINE GET cCountry ID 400 OF oDlg
REDEFINE BUTTON ID 1 OF oDlg ACTION Show( cStreet, cCity, cCountry, oActiveX )
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT Show( cStreet, cCity, cCountry, oActiveX )
return nil
function Show( cStreet, cCity, cCountry, oActiveX )
local cHtml := MemoRead( ".\MAPPE\gmap.html" )
cHtml = StrTran( cHtml, "<<STREET>>", AllTrim( cStreet ) )
cHtml = StrTran( cHtml, "<<CITY>>", AllTrim( cCity ) )
cHtml = StrTran( cHtml, "<<COUNTRY>>", AllTrim( cCountry ) )
MemoWrit( "temp.html", cHtml )
oActiveX:Do( "Navigate2", CurDrive() + ":\" + CurDir() + "\temp.html" )
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 84 guests