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 OPEN WEB URL command launches your default Web browser and opens it on the URL passed in the url parameter.
If there is no browser on the volumes connected to the computer, this command has no effect.
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. When opening files locally, it is possible to use system separators in the url parameter:
$ref:=Open document("";"";Get Pathname) CLOSE DOCUMENT($ref) OPEN WEB URL("file:///"+document)
4. The following line of code launches the browser and connects it to 4D's home page:
OPEN WEB URL("http://www.4d.com/")