Important: The information in this document is obsolete and should not be used for new development.
Get1IndType
You can use theGet1IndType
procedure to get all the resource types available in the current resource file.
PROCEDURE Get1IndType (VAR theType: ResType; index: Integer);
theType
Get1IndType
returns, in this parameter, the resource type with the specified index in the current resource file.index
- An integer ranging from 1 to the number of resource types in the current resource file.
DESCRIPTION
Given an index number from 1 to the number of resource types in the current resource file (as returned byCount1Types
), theGet1IndType
procedure returns a resource type in the parametertheType
.You can callGet1IndType
repeatedly over the entire range of the index to get all the resource types available in the current resource file. If the given index isn't in the range from 1 to the number of resource types as returned byCount1Types
,Get1IndType
returns four null characters (ASCII code 0).SPECIAL CONSIDERATIONS
TheGet1IndType
procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.RESULT CODE
noErr 0 No error SEE ALSO
To check for errors, call theResError
function as described on page 1-47.For a description of the
Count1Types
function, see page 1-97.