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.

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

Dim f As FolderItem = dlg.ShowModal
If f <> Nil Then
MoviePlayer1.movie = f.OpenAsMovie
Else
// user cancelled
End If