Page 1 of 1

Form V14SP2 : How to launch a browser from a form

Posted: Tue Jun 15, 2021 4:18 pm
by Rieko Saitoh
Hi all,

I would like to launch a web browser from a form and open a page with the specified URL.
Instead of displaying the web page on the form, I would like to start a browser and display a web page.
Does anyone know this method?

Thank you.

Best regards,
Rieko Saitoh
LANSA japan

Re: Form V14SP2 : How to launch a browser from a form

Posted: Tue Jun 15, 2021 7:52 pm
by Fabrice.geay
Hi Reiko,

if i have understand what you want to do try this code:

#STD_TEXT := "chrome.exe"

Use Builtin(SYSTEM_COMMAND) With_Args('H' #STD_TEXT 'www.LANSA.COM') To_Get(#STD_NUM)

Re: Form V14SP2 : How to launch a browser from a form

Posted: Tue Jun 15, 2021 10:58 pm
by Dino
Agree, just a quick suggestion to that, to open the page in the current default browser instead of just chrome

Code: Select all

* rundll32 url.dll,FileProtocolHandler https://www.lansa.com
Use Builtin(SYSTEM_COMMAND) With_Args('H' 'rundll32' 'url.dll,FileProtocolHandler' 'www.LANSA.COM') To_Get(#STD_NUM)

Re: Form V14SP2 : How to launch a browser from a form

Posted: Thu Jun 17, 2021 4:30 pm
by Rieko Saitoh
Hi Fabrice and Dino,

Thanks for your good advice, I am able to implement it.
Thank you for your support!!!

Best regards,
Rieko Saitoh
LANSA japan