4D v13.4Select folder |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
Select folder
Select folder
The Select folder command displays a dialog box that allows you to manually select a folder and then retrieve the complete access path to that folder. The optional defaultPath parameter can be used to designate the location of a folder that will be initially displayed in the folder selection dialog box. Note: This command does not modify 4D’s current folder. The Select folder command displays a standard dialog box to browse through the workstation’s volumes and folders. Windows Mac OS You can use the defaultPath parameter to provide a default folder location in the folder selection dialog box. You can pass three types of values in this parameter:
Note: This mechanism is identical to the one used by the Select document command. The numbers of memorized pathnames are shared between both these commands. The options parameter lets you benefit from additional functions under Mac OS. In this parameter, you can pass one of the following constants, found in the System Documents theme:
You can pass a single constant or a combination of both. These options are only taken into account under Mac OS. Under Windows, the options parameter is ignored if it is passed. The user selects a folder and then clicks the OK button (on Windows) or the Select button (on Mac OS). The access path to the folder is then returned by the function.
Note: On Mac OS, depending on whether or not the name of the folder is selected in the dialog box, the access path that is returned to you may be different. 4D Server: This function allows you to view the volumes connected to the client workstations. It is not possible to call this function from a stored procedure. If the user validates the dialog box, the OK system variable is set to 1. If the user clicks the Cancel button, the OK system variable is set to 0 and the function returns an empty string. Note: On Windows, if the user selected some incorrect elements, such as “Workstation”, “Trash can”, and so on, the OK system variable is set to 0, even if the user validates the dialog box. The following example allows you to select the folder in which the pictures in the picture library will be stored: $PictFolder:=Select folder("Select a folder for your pictures.") |
PROPERTIES
Product: 4D
INDEX HISTORY
Modified: 4D v11 SQL SEE ALSO
CREATE FOLDER TAGS Chemin accès, Folder*** |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||