Function: choosedir( )

Syntax

choosedir {<title> {,<dir>}}

Type

string

Returns

Enables the operator to select a file directory (or folder in Windows-speak) via an interactive "Directory Select" window. When this function is invoked, a popup dialog window is displayed and the user can choose from a tree hierarchy of the local file system.

This function is currently available on Windows systems only.

Parameters

Notes

The value returned by this function is the name of the chosen directory. The directory is selected by pressing the ’OK’ or ’Select’ button in the popup window.

Pressing the ’Cancel’ button will abort the operation and return an empty string.

The position of the dialog window is determined by the value of menu_position.

No action is done to the selected folder/directory. This is the responsibility of the caller.

The system numeric identifier found is set by this function. It gets set to true on a successful directory selection, or false on dialog cancel or error.

Example

string fdir = choosedir('Indicate the source folder')

See Also

Functions:

choosefile, choosefiles