WinXDialog_SaveFile$


fileName$ = WinXDialog_SaveFile$ (parent, title$, extensions$, initalName$, overwritePrompt)

Displays a standard Windows Save As dialog box

Parameter Description
parent The parent window for the dialog box, 0 for none
title$ The title of the dialog box, usually "Save As"
extensions$ The file type filters, see the remarks section for WinXDialog_OpenFile$ for more information
initialName$ The file name to appear in the dialog box when it is initialised
overwritePrompt $$TRUE to warn the user when they are about to overwrite a file, $$FALSE otherwise

Returns

A string containing the name of the file the user selected, or the empty string on fail.

Remarks

see WinXDialog_OpenFile$ for more information regarding the extensions$ parameter.

Examples

'Get a file from the user
fileName$ = WinXDialog_SaveFile$ (#hMain, "Save As... ", "All files (*.*)\0*.*\0\0", "", $$TRUE)

Related Links

WinXDialog_OpenFile$