3.3.2.26 GetSaveName

Opens the Save As dialog box.

Please see the dlgSave X-Function.

Syntax:

getsavename [fileName] .extension

If fileName is specified, it is the default file name in the Save As dialog box. extension is the default file extension. Although extension must be specified, * can be used to leave the choice open.

If you enter a file name and click OK, the file name and the selected path are saved into the string variable %A. If you click Cancel, %A is unchanged.

Examples:

The following script opens the Save As dialog box and displays *.* in the File Name text box.

getsavename * .*;

The next script opens the Save As dialog box and displays the name of the active window .OGW in the File Name text box.

getsavename %H .ogw;