[phpBB Debug] PHP Warning: in file [ROOT]/ext/tas2580/privacyprotection/cron/task/anonymize_ip.php on line 83: A non-numeric value encountered
Inoffizielles deutsches Xbase-Forum • Internetseite mittels Pushbutton aufrufen - xbase 1.9
Seite 1 von 1

Internetseite mittels Pushbutton aufrufen - xbase 1.9

Verfasst: So, 05. Aug 2018 10:52
von saul
Hallo,
ich möchte mittels Pushbutton eine Internetseite durch den vom Betriebssystem voreingestelltem Browser öffnen.

Code: Alles auswählen

oInternet := XbpPushButton():New (,, { 10 , 230 } , { 40 , 10 } )
oInternet : pointerFocus :=.F.
oInternet : Caption := "~Interentseite"
oInterent :Create()
oInterent :Activate := { || runshell( "http://homepage.de/index.html" ) }
Leider ist mir das nicht gelungen. Geht das überhaupt?

Wolfgang

Re: Internetseite mittels Pushbutton aufrufen - xbase 1.9

Verfasst: So, 05. Aug 2018 11:46
von Wolfgang Ciriack
Versuchs mal mit:

Code: Alles auswählen

cUrl:=""http://homepage.de/index.html"
cParams := 'url.dll,FileProtocolHandler ' + Alltrim(cURL)
cCommand := 'Rundll32.exe'
lAsync:=.T.
lBackground:=.F.

RunShell( cParams, cCommand, lAsync, lBackground )

Re: Internetseite mittels Pushbutton aufrufen - xbase 1.9

Verfasst: So, 05. Aug 2018 13:38
von saul
Klappt, danke.

Wolfgang