4D v16.3

Get resource properties

Home

 
4D v16.3
Get resource properties

Get resource properties 


 

Get resource properties ( resType ; resID {; resFile} ) -> Function result 
Parameter Type   Description
resType  String in 4-character resource type
resID  Longint in Resource ID number
resFile  DocRef in Resource file reference number, or all open resource files, if omitted
Function result  Longint in Resource attributes

The Get resource properties command returns the attributes 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, the command returns 0 (zero) and sets the OK variable to 0 (zero).

The numeric value returned by Get resource properties must be seen as a bit field value whose bits have special meaning.

Example  

See example for the Get resource name command.

The OK variable is set to 0 if the resource does not exist; otherwise, it is set to 1.

 
PROPERTIES 

Product: 4D
Theme: Resources
Number: 515

The OK variable is changed by the command

 
HISTORY 

Created: 4D v6

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)