Open File Dialog - AddFilter Method

Add a file type filter

Member of Open File Dialog (PRIM_APPL.ICommonDialogFileOpen)

Parameters

Name

Type

Data Type

Description

Name

*Input (Optional)

String

Descriptive name for the filter

Extention

*Input (Optional)

String

Filter file extension e.g. .Txt

Details

Use the AddFilter method to add a file type filter to limit the files seen in the dialog.

Example

In this example, a Word document filter is added

     #FileDialog.AddFilter( 'Word Files' '*.docx' )


See also

All Component Classes

Technical Reference

  • No labels