TFileDialog.DefaultExt property
Contains the default extension for file names in the dialog.
Declaration
property 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
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
