4D v12.4

SET TEXT RESOURCE

Home

 
4D v12.4
SET TEXT RESOURCE

 

SET TEXT RESOURCE 


 

SET TEXT RESOURCE ( resID ; resData {; resFile} ) 
Parameter Type   Description
resID  Longint in Resource ID number
resData  String in New contents for the TEXT resource
resFile  DocRef in Resource file reference number, or current resource file, if omitted

The SET TEXT RESOURCE command creates or rewrites the text (“TEXT”) resource whose ID is passed in resID with the text or 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 text resource can contain up to 32,000 characters.

If the resource has been written, OK is set to 1. Otherwise, it is set to 0 (zero).

 
PROPERTIES 

Product: 4D
Theme: Resources
Number: 505

The OK variable is changed by the command

 
HISTORY 

Created: 4D v6

 
SEE ALSO 

Get text resource
SET STRING RESOURCE