Important: The information in this document is obsolete and should not be used for new development.
Count1Resources
You can use theCount1Resources
function to get the total number of resources of a given type in the current resource file.
FUNCTION Count1Resources (theType: ResType): Integer;
theType
- A resource type.
DESCRIPTION
Given a resource type, theCount1Resources
function reads the resource map in memory of the current resource file. It returns as its function result the total number of resources of the given type in the current resource file only.RESULT CODE
noErr 0 No error SEE ALSO
To check for errors, call theResError
function as described on page 1-47.For an example of the use of the
Count1Resources
function, see Listing 1-10 on page 1-28.