4D v14.3RESOURCE LIST |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
RESOURCE LIST
RESOURCE LIST
The RESOURCE LIST command populates the arrays resIDs and resNames with the resource IDs and names of the resources whose type is passed in resType. Important: You must pass a 4-character string in resType. If you pass a valid resource file reference number in the optional parameter resFile, only the resources from that file are listed. If you do not pass the parameter resFile, all resources from the current open resource files are listed. If you predeclare the arrays before calling RESOURCE LIST, you must predeclare resIDs as a Longint array and resNames as a String or Text array. If you do not predeclare the arrays, the command creates resIDs as a Longint array and resNames as a Text array. After the call, you can test the number of resources found by applying the command Size of array to the array resIDs or resNames. The following example populates the arrays $alResID and $atResName with the IDs and names of the string list resources present in the structure file of the database: If(On Windows) The following example copies the picture resources present in all currently open resource files into the Picture Library of the database:
RESOURCE LIST("PICT";$alResID;$atResName) |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v6 SEE ALSO ARTICLE USAGE
4D Language Reference ( 4D v12.4) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||