DIRECTORY_DIALOG ​
DIRECTORY_DIALOG opens a system dialog which lets the user choose a directory.
Syntax ​
leo-grammar
CC "AdoScript" DIRECTORY_DIALOG [ path:strValue ] .
#--> RESULT endbutton:["ok"|"cancel"] path:strValue
Parameters ​
path
(strValue, optional) - Path to a folder, which is shown when the window is opened
Returns ​
endbutton
(enumValue) - ["ok"|"cancel"] is set to "ok" if the user pressed the OK button and to "cancel" if the user cancelled thepath
(strValue) - Contains path to the full selected path if the user pressed OK!
Details ​
The user can only selected directories on mapped network drives, because ADOxx does not really support stuff like Desktop, Trash can etc.
You can only select one directory!
You can set the starting directory by passing the parameter path which should contain the path which should be preselected!
See Also ​
Examples ​
asc
CC "AdoScript" DIRECTORY_DIALOG
IF (endbutton = "ok")
{
CC "AdoScript" INFOBOX (path)
}
Versions and Changes ​
Available since ADOxx 1.3