|
|
|
|
|
- Selecting files
- Operating mode in Java
- Former and new directory picker
fSelectDir (Function) In french: fRepSélecteur Opens a directory picker. The directory picker is as follows (the appearance may change according to the system used)
Remark: You have the ability to select a local directory or a directory found on a network disk.
// Select a directory Directory = fSelectDir("C:\Directories", "Select a directory", ... "Select the directory that will be copied")
Syntax
<Result> = fSelectDir(<Directory selected by default> , <Picker title> [, <Picker comments> [, <Root directory> [, <Options>]]])
<Result>: Character string - Path and full name of the selected directory,
- Empty string ("") if no directory was selected. To get more details on the error, use ErrorInfo with the errMessage constant.
<Directory selected by default>: Character string Name and full (or relative) path of the directory selected by default. A UNC path can be used. This parameter must end with "\". If this parameter is an empty string (""), no directory will be selected by default.
<Picker title>: Character string Text displayed in the title bar of the directory picker. If this parameter is an empty string (""), the "Find a folder" title will be displayed. <Picker comments>: Optional character string Comments displayed at the top of the directory picker. <Root directory>: Optional character string Name and full path of the "root" directory in the suggested tree structure. A UNC path can be used. If this parameter is an empty string (""), the "Desktop" directory will start the proposed tree structure. This parameter is used to limit the selection to the directories of a given disk or to the subdirectories of a given directory.If this parameter differs from empty string (""), the former directory picker will be used. <Options>: Optional Integer constant Allows you to specify: - the format of the function result. By default, fSelectDir returns a character string in Ansi format.
- the style of the directory picker.
| | fdForbidVirtualFolder | <Result> will not contain the virtual directories.
| fdFormerAspect | Allows you to use the former directory picker (old style). | fPathUNICODE | <Result> will be a Unicode string.
|
Remarks Selecting files fSelectDir is used to select a directory. To select a file, use fSelect. Business / UI classification: UI Code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|