method InputFileSave(ControlName: String, Prompt: String[, Title: String, InitialDirectory: String, Filter: String, DefaultExtension: String]) : Object
Define a file select control on a scripted form that allows input of a file name.
InputFileSave 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 Windows file select dialog will open in, for example, "C:\Data". |
Filter |
Optional. The list of file filters for the Save as Type selection, separated by pipes, for example, "Text Files(*.txt)|*.txt|All Files|*.*". Note that the first extension in the list is applied as the default extension if one is not specified. |
Default Extension |
Optional. If specified, then this extension gets added to the end of the file name which is returned if an extension is not specified. |
See also MaxBasic InputFileSave function.