<< Click to Display Table of Contents >> Navigation: 3. Script Language > Input- and Output commands > Input and Output Commands |
MiniRobotLanguage (MRL)
DDD. - Display Directory Dialog
Display Directory Selection Dialog-Box
Intention
Generates a Dialog in which you can choose a Directory at Runtime of the Script.
Usage:
$$TIT=Titel
$$SFO=?path\
DDD.$$RET|$$TIT|$$SFO|?desktop\
MBX.>$$RET<
ENR.
The result will be the Folder-Path without an "\" at the end.
Syntax
DDD.P1[|P2][|P3][|P4][|P5]
Parameter Explanation
P1 - Variable to return the Folder-Path
P2 - (optional) - Titel. This Text/Explanation will be given to the User in the Dialog.
P3 - (optional) - Start-Path. The Dialog will start in this Folder.
P4 - (optional) - Default-Path. The Command will return this path, if the user hits "Cancel" or closes the Dialog.
If omitted, nothing is returned.
P5 - (optional) - Flags (add numbers to combine features)
1 | Only returns file system directories. With any other selection, the OK button is grayed. |
2 | Does not include network folders below the domain level in the treeview control. |
8 | Only returns file system ancestors. With any other selection, the OK button is grayed. |
16 | Includes an edit control in the dialog box that allows the user to type the name of an item. |
64 | Provides the new user interface, a larger dialog box that can be resized. It also offers drag-and-drop capability within the dialog box, reordering, shortcut menus, new folders, delete, and other shortcut menu commands. This is the default style. |
80 | Use the new user interface, plus an edit box. |
128 | The dialog box can display URL's if 80 and 16384 are also set. |
256 | When this flag is combined with Flag 64, adds a usage hint to the dialog box in place of the edit box. |
512 | Do not include the "New Folder" button in the dialog box. |
1024 | When the selected item is a shortcut, return the PIDL of the shortcut itself rather than its target. |
16384 | The dialog box will display both files and folders. |
32768 | The dialog box can display shareable resources on remote systems. It is intended for applications that want to expose remote shares on a local system. Forthis, 64 flag must also be set. |
Example
'***********************************
' DDD.-Sample
'***********************************
' Titel
$$TIT=Titel
' Path where the Dialog starts
$$SFO=?path\
' ?desktop is the default return if the user hits "Cancel"
DDD.$$RET|$$TIT|$$SFO|?desktop\
MBX.>$$RET<
ENR.
Remarks
-
Limitations:
-
See also:
• DSD. - Display Save-File Dialog