
Contents |
Prompt user with an Save as dialog.
X-Function not designed for Auto GetN Dialog.
1. dlgSave;
2. dlgSave fname:=myfile;
3. dlgSave ext:=*.ogs title:="Saving GIF file location";
| Display Name | Variable Name | I/O and Type | Default Value | Description |
|---|---|---|---|---|
| fname |
Output string | |
The string that will receive path and name of the user's chosen file. | |
| file extension | ext |
Input string | |
Optional string used to initialize the dialog with settings from a file extension group. |
| init |
Input string | |
Optional string used to initialize the file path (for opening, saving, etc.) in the dialog. | |
| Save as dialog title | title |
Input string | |
Optional string used to set the dialog's title. |
If you want to put the result into the system variable fname$, use the follow command:
dlgSave;
If you want to put the result into the variable myfile$, use the following command:
dlgSave myfile;
If you want to save the file as ogs type, with a dialog title as "Saving OGS file location", then you can use the following command:
dlgSave ext:=*.ogs title:="Saving OGS file location";