Xojo.IO.SpecialFolder.GetResource
From Xojo Documentation
Method
Xojo.IO.SpecialFolder.GetResource(name As Text) As Xojo.IO.FolderItem
Supported for all project types and targets.
Supported for all project types and targets.
Gets the specified file (by name) located in the Resource folder of the app's main bundle (Mac or iOS) or in the Resource folder on Windows, Linux and console apps.
Notes
Use a Copy Files Build Step to copy files into the Resource folder.
Exceptions
- InvalidArgumentException if the file the does not exist.
Sample Code
Gets a file that has been copied to the Resource folder: