|
|
|
|
|
- Properties specific to URI variables
- Functions that use URI variables
The URI (Uniform Resource Identifier) type identifies physical or abstract resources (e.g. files or Web pages). There are two types of URIs: - URL (Uniform Resource Locator): identifies a resource through its means of access and location..
Examples: - Web address: https://www.pcsoft.fr/windevmobile/index.html
- File location on disk: file:///C:/Users/johndoe/Documents/log.txt
- URN (Uniform Resource Name): identify a resource by its name. They do not make it possible to locate the resource but must remain unique and persist even if the resource no longer exists or becomes unavailable.
Example: ISBN number of a book: urn:isbn:0-395-36341-1
A URI can be represented as a character string whose syntax complies with the standard defined by RFC 3986. Each URI can contain up to five parts: <schéma>: [//<autorité>]<chemin>[? <requête>] [ # <fragment> ] - The URI scheme is a letter followed by any combination of letters, numbers, plus sign (+), period (.) or dash (-) and ends with a colon (:). In the case of a URL, it generally corresponds to the protocol to be used to access the resource: http, https, ftp, etc.
- The authority of the URI is an optional part that corresponds to the identification information to access the resource. Its format is usually:
[<utilisateur>[:<mot de passe>]]hôte[:<port>] - The path is a sequence of segments separated by slashes (/). In the case of a URL on a Web page for example, it represents the path to the resource on the host.
- The request is an optional part preceded by a? and followed by a set of pairs ' key=value' separated by '&'. In the case of a URL on a web page for example, it allows you to pass named parameters to the page.
- The fragment is an optional part preceded by a '#' that allows providing additional information to access a secondary resource (page number, anchor of an HTML page, etc.).
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. Propiedades Properties specific to URI variables The following properties can be used to handle URI variables: | | | Property name | Type used | Effect |
---|
Authority | Character string | - "Authority" part of the URI,
- Empty string if not specified.
This property is available in read and write mode. | Fragment | Character string | - Fragment of the URI,
- Empty string if not specified.
This property is available in read and write mode. | Host | Character string | - Host of the URI,
- Empty string if not specified.
This property is available in read and write mode.Warning: If the Host property is modified: - the properties User and Password are reset: these two properties must then be filled in..
- the Port property is reset: the Port property must also be set.
| Path | Character string | Path of the URI. This property is available in read and write mode. | Port | Integer | - Port number (between 1 and 65365),
- 0 if not specified.
This property is available in read and write mode. | Query | Character string | - Query found in the URI,
- Empty string if not specified.
This property is available in read and write mode. | Scheme | Character string | Scheme found in the URI. If changes are made, this property is mandatory and cannot be empty. This property is available in read and write mode. | User | Character string | Username. This property is available in read and write mode. | UserPassword | Character string | - User password,
- Empty string if not specified.
This property is available in read and write mode. | Value | Character string | Complete URI. |
You can use VariableReset to reset the contents of a variable of type URI. Observaciones Functions that use URI variables The following functions handle URI variables:
| | BufferToURI | Guarda el contenido de un buffer en una Resource identificada por su URI. | FileToURI | Guarda el contenido de un archivo en una Resource identificada por su URI. | URIGetInfo | Retrieves information of a URI resource. | URISelect | Abre una ventana del sistema para seleccionar una Resource de: - desde el sistema de archivos de dispositivos,
- desde la nube (Google Drive, Microsoft OneDrive, etc.)
- o desde uno de los gestores de contenidos instalados en el dispositivo.
| URIToBuffer | Carga en el fondo el contenido de un Resource (imagen, texto, etc.) identificado por su URI en un buffer Variable. | URIToFile | Saves, in the background, the content of a resource (image, text, etc.) identified by its URI in an external file. |
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|