|
|
|
|
|
- Space
- Modifying the current disk and directory
- Current directory during the tests
Identifies or modifies the current directory.
// Find out the current directory ResCurrentDir = fCurrentDir()
Sintaxis
Finding out the current directory on the specified disk Ocultar los detalles
<Result> = fCurrentDir([<Disk> [, <Option>]])
<Result>: Character string - Path of current directory on the specified disk (up to 260 characters). This path ends with a "\" character at the root of a disk only ("A:\" for example).
 This directory corresponds to the directory that will be used to store the private application files in the internal storage area ("files" directory). You have the ability to read and write in this directory.
  This directory corresponds to the "Documents" directory of the application. You have the ability to read and write in this directory. The files found in this directory can be accessed by iTunes. - -1 if an error occurs. To get more details on this error, use ErrorInfo with the errMessage constant.
<Disk>: Optional character string Name of disk where the current directory will be sought. This name has the following format:- <drive letter>:. For example: "A:"..
- UNC path. For example: "\\<ServerName>\<ShareName>".
If this parameter is not specified, the disk corresponds to the current disk. <Option>: Optional Integer constant Used to specify the format of function result. By default, fCurrentDir returns a character string in Ansi format. | | fUnicodePath | <Result> will be a Unicode string. |
Modifying the current directory Ocultar los detalles
<Result> = fCurrentDir(<Path of new current directory> [, <Option>])
<Result>: Character string - Path of current directory (up to 260 characters). This path ends with a "\" character at the root of a disk only ("A:\" for example).
- -1 if an error occurs. To get more details on this error, use ErrorInfo with the errMessage constant.
<Path of new current directory>: Character string Full (or relative) path of new current directory (up to 260 characters). A UNC path can be used: it must be in the form "\\<ServerName>\<ShareName>\<DirectoryName>".
<Option>: Optional Integer constant Used to specify the format of function result. By default, fCurrentDir returns a character string in Ansi format. | | fUnicodePath | <Result> will be a Unicode string. |
Observaciones The trailing spaces of <Path of new current directory> are automatically removed by fCurrentDir: fCurrentDir("C:\MyDirectory\ ")
is equivalent to: fCurrentDir("C:\MyDirectory")
Modifying the current disk and directory To change the disk, we recommend that you use: - fCurrentDrive to modify the current disk,
- fCurrentDir to modify the current directory on the new disk.
If the disk requested by fCurrentDir does not correspond to the current disk, the change of disk is automatically performed. Current directory during the tests When running tests from the WINDEV editor (window or project GO), the current directory corresponds to:
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|