get_directory(dname)

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
dname string the directory name/path of the default directory the dialog should open in

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("");