FolderItemDialog.Result

From Xojo Documentation

Read-Only Property (As FolderItem )
FolderItemValue = aFolderItemDialog.Result

Supported for all project types and targets.

Holds the result of calling ShowModal() or ShowModalWithin.

Notes

If the user validates the dialog, Result contains the FolderItem corresponding to the selection; otherwise, Result is Nil.

Example

This example displays the NativePath to the mp4 file that the user selects using the Result property.

Var dlg As OpenDialog
Var f As FolderItem
dlg = New OpenDialog
dlg.PromptText = "Select a file"
f = dlg.ShowModal
If dlg.Result <> Nil Then
MessageBox("You selected: " + dlg.Result.NativePath)
Else
// User Cancelled
End If