version 6.0
SET STRING RESOURCE (resID; resData{; resFile})
Parameter | Type | Description | |
resID | Number | Resource ID number | |
resData | String | New contents for the STR resource | |
resFile | DocRef | Resource file reference number, or | |
current resource file, if omitted |
Description
The SET STRING RESOURCE command creates or rewrites the string ("STR ") resource whose ID is passed in resID with the string passed in resData.
If the resource cannot be added, the OK variable is set to 0 (zero).
If you pass a valid resource file reference number in resFile, the resource is added to that file. If you do not pass resFile, the resource is added to the file at the top the resource files chain (the last resource file opened).
Note: A string resource can contain up to 255 characters.
See Also
Get string resource, SET TEXT RESOURCE.
System Variables and Sets
If the resource has been written, OK is set to 1. Otherwise, it is set to 0 (zero).