folderSelector()
Opens the folder selector dialog and writes the name of the selected folder to the string variable "path".
Synopsis
int folderSelector(string &folder [, bool fileActions =
true]);
Parameters
Parameter | Description |
---|---|
path | path of the selected folders |
fileActions | Specifies if file operations are allowed within the file selector, e.g. create new files or folders. By default, file actions are allowed. |
Return value
If OK then 1, otherwise 0
Description
Opens the folder selector dialog and writes the name of a selected folder to the string variable "path". The valid content of the variable "path" is an absolute path string. The folder dialog opens with the folder "path".
The following example opens the folder dialog and debugs the folder in the log viewer.
main()
{
int x;
string f;
x=folderSelector(f);
DebugN(f); // the selected folder
}
Disable File Actions Code Snippet
string folder = getPath(DATA_REL_PATH);
folderSelector(folder, false);
Assignment
Availability
UI