|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| disk.dialogBox.save(Title, InitialPath, Filters, Extension, Filename) |
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 filename. |
Return value
| Name of the file as selected by the user. |
Description
Show the standard save dialog box to make it possible for the user to select a file.
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)...
You can retreive the filter of the file selected by the user with disk.dialogBox.save.getFilter |
MioScript Sample Code
&defaultFolder = path.desktop()
&filters[] = "HTML files^^*.htm;*.html^^JavaScript files^^*.js^^PHP files"
&File = disk.dialogBox.save("Save", &defaultFolder, Filters) |
|
|
|