|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| disk.dialogBox.open(Title, InitialPath, Filters, Extension, Filename, MultiSelect) |
Parameters
| STRING | Title | Title of the dialog box.
| | STRING | InitialPath | Initial path.
| | ARRAY | Filters | List of accepted file formats.
| | STRING | Extension | Optional. Default extension.
| | STRING | Filename | Optional. Default file name.
| | BOOL | MultiSelect | Set to true to let the user select more than one file. |
Return value
| File name, or array of file names selected by the user. |
Description
Shows the standard open dialog box to make it possible for the user to select one or several files.
Before calling this function, you need to build an array containing the list of file formats the user can select.
This array is build as follow:
Text^^Filter(s)^^Text^^Filter(s)... |
MioScript Sample Code
&defaultFolder = Path.Desktop()
&filters[] = "HTML files^^*.htm;*.html^^JavaScript files^^*.js^^PHP files"
&File = Disk.DialogBox.Open("Open", &defaultFolder, Filters, Null, Null, False) |
|
|
|