OpenFileDialog.Count

From Xojo Documentation

Property (As Integer )
aOpenFileDialog.Count = newIntegerValue
or
IntegerValue = aOpenFileDialog.Count

New in 2019r2

Supported for all project types and targets.

The number of items selected by the user in the OpenFileDialog. If AllowMultipleSelections is True, the number can be greater than 1.

Example

The following gets the number of items the user selected. In this case, it will be 1 since AllowMultipleSelections is not selected.

Var f As FolderItem = dlg.ShowModal
Var i As Integer = dlg.Count