FileOpen()

Previous Next

Opens the standard Windows Open File dialog to enable end users to select 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

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

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

Parameters

title

Text to appear as the window title. If not specified, "Open" 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

Corresponds to the Read Only check box in the window. 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, "*.*" is assumed.