Function: select_directory

The select_directory function opens a dialog that allows the user to select a directory (folder).

Parameters:

Parameter name Type Description
prompt string Text displayed in the dialog's title bar.

Return value:

Type string: The full path of the directory selected by the user. If the user cancels the dialog, an empty string is returned.

Example:

string selectedDirectory = select_directory("Choose a directory for HTML");
if (selectedDirectory == "") then
    // The user canceled the selection
end if

Use this function when you need users to specify a directory location within your FileMaker solution.

Directory Image

References: