Function: choosefile( )

Syntax

choosefile( {<mode> {,<file> {,<type> {,<title>}}}} )

Type

string

Returns

Enables the operator to select a file name via an interactive "File Select" window. When this function is invoked, a file selection popup dialog window is displayed and the user can scan directories and choose a file.

Parameters

Notes

The value returned by this function is the name of the chosen file, usually selected by pressing the Open or Save 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 file. 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 file selection, or false on dialog cancel or error.

See Also

Functions:

choosedir, choosefiles