CMDFileOpen Properties
The properties defined in the CMDFileOpen class are summarized in the following table. All properties must be set before the open method that invokes the dialog is called.
Property | Description |
---|---|
allowMultiSelect | Specifies whether the File Name list box allows multiple selections |
createPrompt | Specifies whether the user is prompted to create a file that does not currently exist |
defaultExt | Contains the default file name extension for the common File Open dialog |
extensionDifferent | Specifies that the extension of the returned file name differs from the extension |
fileMustExist | Specifies that the user can enter names of existing files only |
fileName | Contains the path and file name of a selected file |
fileTitle | Contains the name without the path of the file to open |
filter | Contains the filters that are displayed in the Type list box |
filterIndex | Contains the default filter |
hideReadOnly | Specifies whether the Read Only check box is visible |
initDir | Contains the initial file directory |
noReadOnlyReturn | Specifies whether the returned file can have the Read Only attribute set |
pathMustExist | Specifies whether the user can enter only valid path names |
readOnly | Indicates the state of the Read Only check box when the dialog is closed |
resetCurrentPath | Specifies whether the current path is reset |
shareAware | Specifies whether network sharing violation errors are ignored |
validate | Specifies whether the common dialog allows invalid characters in the file name |