[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Dialogs' (#lcl)

TFileDialog.DefaultExt

Contains the default extension for file names in the dialog.

Declaration

Source position: dialogs.pp line 173

published property TFileDialog.DefaultExt : string
  read FDefaultExt
  write SetDefaultExt;

Description

DefaultExt is a String property which contains the default file extension used for the FileName or Files in the file dialog. It can contain a value like 'pas' or '.pas'. If the Period character is not present in the first position, it is inserted before the property value is stored.

DefaultExt is used in descendent classes, like TOpenDialog, and provides the value that is appended to a file name when an extension or a Filter has not been provided.

See also

TFileDialog.FileName

  

Contains the UTF-8-encoded name for a file chosen using the dialog.

TFileDialog.Files

  

Stores the names of files (or directories) selected using the dialog.

TFileDialog.FilterIndex

  

This property sets which file filter is the default.

TFileDialog.Filter

  

A string which contains possible filename filters (e.g. .doc, .xmp, .pas etc).

TOpenDialog.CheckFile

  

Ensures the specified file name meets the requirements for the dialog.


Version 3.2 Generated 2024-02-25 Home