SpecialFolder.Resource

From Xojo Documentation

Method

SpecialFolder.Resource(name As String) As FolderItem

New in 2019r2

Supported for all project types and targets.

Returns a FolderItem to the specified file in the app's Resources folder.

Notes

The provided name should be a file name, not a file path.

Sample Code

Var file As FolderItem = SpecialFolder.Resource("MyDb.sqlite")

This is how you can get a file that is within a folder in Resources:

Var file As FolderItem = SpecialFolder.Resource("Pictures").Child("MyPic.png")