SET PICTURE RESOURCE

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 6.0


SET PICTURE RESOURCE (resID; resData{; resFile})

ParameterTypeDescription
resIDNumberResource ID number
resDataPictureNew contents for the PICT resource
resFileDocRefResource file reference number, or
current resource file, if omitted

Description

The SET PICTURE RESOURCE command creates or rewrites the picture ("PICT") resource whose ID is passed in resID with the picture 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 of the resource files chain (the last resource file opened).

If you pass in resData an empty picture field or variable, the command has no effect and the OK variable is set to 0.

Note: A picture resource can be several megabytes in size and even more.

See Also

GET PICTURE RESOURCE.

System Variables and Sets

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


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next