4D v13.4OPEN WEB URL |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
OPEN WEB URL
OPEN WEB URL
The OPEN WEB URL command opens the file or URL passed in theurl parameter with the most suitable application. The url parameter can contain either a standard URL or a file pathname. 4D first attempts to interpret the parameter as a file pathname. The command accepts colons (':') under Mac OS, slashes ('\') under Windows or a Posix URL beginning with file://. If this is the case, 4D will request the system to open the file using the most suitable application (for example, a browser for .html files, Word for .doc files, etc.). The * parameter is ignored in this case. If the url parameter contains a standard URL (mailto:, news:, http:, etc. protocols), 4D starts the default Web browser and accesses the URL. 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. The following examples illustrate different types of strings that are accepted as URLs by the command: OPEN WEB URL("http://www.4d.com") This example can be used to launch an application : $fichier:=Select document("";"";0) |
PROPERTIES
Product: 4D
INDEX HISTORY
Modified: 4D v11 SQL Release 2 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||