Previous Topic

Next Topic

InputFileOpen - Scripted Form Method

method InputFileOpen(ControlName: String, Prompt: String[, Title: String, InitialDirectory: String, Filter: String]) : Object

Define a file select control on a scripted form that allows input of a file name.

InputFileOpen method syntax has these named arguments:

Parameter

Description

Control Name

Required. Name of the control. Must be a valid MaxBasic identifier.

Prompt

Required. Prompt text to display to left of the control.

Title

Optional. String expression in the title bar of the Select File dialog box. If you omit title, "Select File" is placed in the title bar.

Initial Directory

Optional. The initial directory the file will load from, for example, "C:\".

Filter

Optional. The list of file filters, with a description and file type, separated by pipes, for example:

"JPG Files (*.jpg)|*.jpg|PNG Files (*.png)|*.png|All Files|*.*"

See also MaxBasic InputFileOpen function.

See Also

ScriptedForm Object

Book Contents

Book Index