FilePattern (file dialog filter)

Top  Previous  Next





The FilePattern property contains a text string that defines both the file masks and the file mask descriptions that appear in the file dialog's List Files of Type drop-down list. The first mask is the default selection in the file dialog.

The FilePattern property should contain one or more descriptions followed by their corresponding file masks in the form description|masks|description|masks. All elements in the string must be delimited by the vertical bar (|).

For example,

'all files *.*|*.*|Clarion source *.clw;*.inc|*.clw;*.inc'

defines two selections for the File dialog's List Files of Type drop-down list. See the extensions parameter to the FILEDIALOG function in the Language Reference for more information.