IFileDialog.Filter

Syntax

Filter: String;

Description

The Filter property determines filter text to limit list of available files.

Comments

If filter is determined, only files which names and extension fulfil the filter conditions are available. Various file categories are determined in filter line using the | characters. Various conditions in one category are separated by the ; character.

Filtering conditions can be set in filter editor n the form designer mode. The Filter Editor window is called on pressing button of the Filter property in the object inspector or selecting the Filter context menu item of the file opening/saving dialog box.

The set filter looks as follows in character mode:

Filter:="Audio files|*.aif;*.mp3;*.ogg;*.voc;*.wav;*.wma|Video files|*.asf;*.avi;*.mpe*;*.mpg;*.mpg4";

See also:

IFileDialog