4D v14.3RESOURCE TYPE LIST |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
RESOURCE TYPE LIST
RESOURCE TYPE LIST
The RESOURCE TYPE LIST command populates the array resTypes with the resource types of the resources present in the resource files currently open. 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 the resources from the current open resource files are listed. You can predeclare the array resTypes as a String or Text array before calling RESOURCE TYPE LIST. If you do not predeclare the array, the command creates resTypes as a Text array. After the call, you can test the number of resource types found by applying the command Size of array to the array resTypes. The following example populates the array atResType with the resource types of the resources present in all the resource files currently open: RESOURCE TYPE LIST(atResType) The following example tells you if the Macintosh 4D structure file you are using contains old 4D plug-ins that will need to be updated in order to use the database on Windows:
$vhResFile:=Open resource file(Structure file) Note: The structure file is not the only file where old version plug-ins can be stored. The database can also include a Proc.Ext file. The following project method returns the number of resources present in a resource file: ` Count resources project method Once this project method is implemented in a database, you can write: $vhResFile:=Open resource file("") |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v6 SEE ALSO ARTICLE USAGE
4D Language Reference ( 4D v12.4) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||