FileSaveAs()

Previous Next

Opens the standard Windows Save As dialog to enable end users to save a file. The window title, directory name and file name can all be preset if required, as can the read-only attribute. The parameter pairs are used to give the end user a predefined number of sets of files with an appropriate description. The name of the file is returned as the value of the current control.

NOTE:

If you do not specify any optional parameters, do not put any spaces between the commas, as these could be interpreted as parameters.

Syntax

FileSaveAs([<title>],[<directory>],[<filename>],

[read-only],[<type>], [<filter>[,<filter...>...]])

Parameters

title

Text to appear as the window title. If not specified, "Save As" is used.

directory

The directory to be used. If not specified, the current directory is used.

filename

The filename to be offered by default. If not specified, the last file selected is offered.

read-only

Allows the file to be saved as read-only. If not specified, it defaults to 'No'.

type

Description of the file type.

filter

Specification of filenames that must be displayed. If no parameter pairs are specified, "*.txt" is assumed.