Previous Topic

Next Topic

Book Contents

Book Index

Form Designer File Open Dialog Properties

Navigator > Setup > Form Designer > Layout tab > Component Editor > Properties tab

See also Form Designer Component Properties for properties common to different component types.

The following properties are available for File Open Dialog Components:

DefaultExt

The default file extension to be opened or saved.

FileName

The default file name to be opened or saved.

Filter

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|*.*"

FilterIndex

Sets the default file filter when the dialog is first opened.

InitialDir

Enter the initial directory to default to.

Options

Click + to expand. Select options for the File dialog:

  • ofOverwritePrompt - if the file is an existing file, the user will be prompted whether to overwrite the file.
  • ofNoChangeDir - prevents the dialog from changing the current directory when the user presses the OK button.
  • ofAllowMultiSelect - allows the user to select more than one file.
  • ofPathMustExist - restricts the user to selecting a path that already exists.
  • ofFileMustExist - restricts the user to selecting a file that already exists.
  • ofCreatePrompt - if the file entered doesn't exist, prompts the user on whether to create the file.
  • ofNoReadOnlyReturn - prevents the user for opening or saving a read-only file. An error message is shown.
  • ofNoDereferenceLinks - if a shortcut file is selected, the FileName is set to the name of the shortcut itself, rather than the linked file.
  • ofDontAddToRecent - does not add the file name to the list of recent files.

Title

The title displayed on the dialog.