FolderItemDialog.Filter

From Xojo Documentation

Property (As String )
aFolderItemDialog.Filter = newStringValue
or
StringValue = aFolderItemDialog.Filter

Supported for all project types and targets.

One or more File Types, separated by semicolons, previously defined via the FileType class or in the File Type Sets Editor in the IDE.

Notes

Filter controls which files within InitialDirectory are visible.

Example

This example illustrates all the labelling properties of a FolderItemDialog.

Var dlg As New OpenDialog
dlg.Title = "Select an mp4 file"
dlg.Filter = FileTypes1.VideoMp4 // defined in the File Types Editor...

Var f As FolderItem = dlg.ShowModal
If f <> Nil Then
MoviePlayer1.movie = Movie.Open(f)
Else
// user cancelled
End If