Get resource name
Get resource name ( resType ; resID {; resFile} ) -> Function result
Parameter | Type | Description | |
---|---|---|---|
resType | Text | → | 4-character resource type |
resID | Integer | → | Resource ID number |
resFile | Time | → | Resource file reference number, or all open resource files, if omitted |
Function result | String | ← | Name of the resource |
This command is not thread-safe, it cannot be used in preemptive code.
Description
The Get resource name command returns the name of the resource whose type is passed in resType and whose ID number is passed in resID.
If you pass a valid resource file reference number in the parameter resFile, the resource is searched for within that file only. If you do not pass the parameter resFile, the resource is searched for within the current open resource files.
If the resource does not exist, Get resource name returns an empty string.