version 6.5
OPEN WEB URL (url{; *})
| Parameter | Type | Description | |
| url | String | Startup URL | |
| * | * | If specified = URL is not translated, | |
| If omitted = URL is translated |
Description
The command OPEN WEB URL launches your Web browser and opens it on the URL passed in the url parameter.
If your Web browser was already opened when you execute this command:
On Windows, an additional instance of the browser is executed and displays the specified page by url.
On MacOS, the specified page by url replaces the current page in the browser.
If there is no browser on the volumes connected to the computer, this command has no effect.
Note: Under MacOS, this command will read the Internet settings (default browser) defined in the Internet Control panel, if any.
4D automatically encodes the URL's special characters. If you pass the * character, 4D will not translate the URL's special characters. This option allows you to access and to send URLS of type "http://www.server.net/page.htm?q=something".
Note: This command does not work when called from a Web process.
Examples
(1) When the following line of code is executed:
OPEN WEB URL("file:///D:/web file.htm")
The Web browser is launched and the URL is translated into "file:///D%3A/web%20file.htm".
(2) When the following line of code is executed:
OPEN WEB URL("file:///D:/web file.htm";*)
The Web browser is launched and the URL remains "file:///D:/web file.htm"
(3) The following line of code launches the browser and connects it to 4D's home page:
OPEN WEB URL("http://www.4d.com/")