FileType Usage Question

Can I use two different filetypes for an openfiledialog OR have on filetype referencing 2 different file types? How do I do it, the docs are a little vague. Thanks!

The documentation for FileType shows that you can just add them together

Var jpegType As New FileType
jpegType.Name = "image/jpeg"
jpegType.Extensions = "jpg;jpeg"

Var pngType As New FileType
pngType.Name = "image/png"
pngType.Extensions = "png"

Var f As FolderItem

' Use the addition and conversion operators to combine the file types
f= FolderItem.ShowOpenFileDialog(jpegType + pngType)
1 Like

Thanks!