get_directory_alt(capt,root)

From ENIGMA
Jump to navigation Jump to search

Description

Opens a native dialog chooser allowing the user to select a folder.

Parameters

Parameter Data Type Description
capt string text displayed below the caption and above the file tree
root string the root directory of the folder chooser

Return Values

string: Returns the directory selected by the user or a null-terminated string if they cancel.

Example Call

// demonstrates letting the user select a directory
var dir;
dir = get_directory_alt("Please select a folder:","");