FolderItem.Exists

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aFolderItem.Exists

Supported for all project types and targets.

Indicates whether or not the folder item points to a file or directory that exists.

Example

This example checks whether a FolderItem exists before using it.

Var f As FolderItem
f = GetFolderItem("Zippy.tif")
If f.Exists Then
Canvas1.Backdrop = f.OpenAsPicture
End If