SYSTEM-DIALOG GET-FILE character-field
FILTERS name filespec
, name filespecINITIAL-FILTER filter-numASK-OVERWRITECREATE-TEST-FILEDEFAULT-EXTENSION extension-stringINITIAL-DIR directory-stringMUST-EXISTRETURN-TO-START-DIRSAVE-ASTITLE title-stringUSE-FILENAMEUPDATE logical-variableIN WINDOW windowYou can also use character-field to pass a default filename entry to the dialog. See the USE-FILENAME option for more information.Defines one or more filters for the filename dialog. Each filter selects a subset of the available files in the common dialog directory to build the dialog file selection-list. A filter consists of two parts: a label (name) and file specification (filespec).The name is a character expression used as a label for your filter. Windows uses the label to identify the filter in a filter selection-list. The user can select the label to view the list of files selected by the filter.The filespec is a character expression that evaluates to a file specification string. This string can consist of any wild cards or regular expressions used to generate valid file specifications in your environment. In Windows, filespec can also consist of multiple file specifications, separating each one with a comma, for example: *.p,*.i,*.r.INITIAL-FILTER filter-numSpecifies the initial filter list defined by the FILTERS option, where filter-num is an integer expression that evaluates to the position of the filter in the list, starting from 1.DEFAULT-EXTENSION extension-stringSpecifies a default extension (or suffix) to be appended to the user’s filename entry after completing the filename dialog, where extension-string is a character expression that evaluates to a valid file extension in your environment, including all required punctuation. In Windows, the extension must start with a period.INITIAL-DIR directory-stringSets the starting directory for this invocation of SYSTEM-DIALOG GET-FILE to the pathname specified in directory-string before starting the dialog. The directory-string is a character expression that must evaluate to a valid pathname in your environment. The default starting directory is either the current working directory or the directory left from the last invocation of SYSTEM-DIALOG GET-FILE.TITLE title-stringSpecifies a title for the dialog box. The value title-string can be any character expression. If you do not specify a title, the dialog uses the system default for your environment.Specifies the contents of character-field as the default filename entry for the dialog. The contents can contain Unicode characters. See OpenEdge Development: Internationalizing Applications for more information about Unicode.UPDATE logical-variableSpecifies a logical variable to return the status of the user’s filename dialog interaction. If the user chooses the OK button, the dialog sets logical-variable to TRUE. If the user chooses the Cancel button, the dialog sets logical-variable to FALSE.IN WINDOW windowSpecifies the window from which the dialog box is displayed. The value window must be the handle of a window.
The Windows common dialog never searches the PROPATH, and always returns the full pathname of the entered relative pathname appended to the current common dialog directory.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |