From Xojo Documentation
| This item was deprecated in version 2019r2.
Please use OpenFileDialog.AllowMultipleSelections as a replacement.
ShowModal still returns a FolderItem, but in the case of a MultiSelect OpenDialog, the FolderItem returned will be the first selection. To obtain a list of all the selected FolderItems we’ve added the Item(zeroBasedIndex As Integer) As FolderItem and Count As Integer properties.
Let user choose multiple files and displays them in a Listbox:
dlg.ActionButtonCaption = "Select Files"
dlg.CancelButtonCaption = "Cancel"
dlg.SuggestedFileName = ""
dlg.Title = "Select Files"
dlg.PromptText = "Select one or more files"
dlg.InitialDirectory = SpecialFolder.Documents
dlg.MultiSelect = True
Dim f As FolderItem = dlg.ShowModal
Dim fileCount As Integer = dlg.Count
For i As Integer = 0 To fileCount - 1