Important: The information in this document is obsolete and should not be used for new development.
GetIndType
You can call theGetIndType
procedure repeatedly to get all the resource types available in all resource forks open to your application.
PROCEDURE GetIndType (VAR theType: ResType; index: Integer);
theType
GetIndType
returns, in this parameter, the resource type for the specified index among all the resource forks open to your application.index
- An integer ranging from 1 to the number of resource types in all resource forks open to your application.
DESCRIPTION
Given an index number from 1 to the number of resource types in all resource forks open to your application (as returned byCountTypes
), theGetIndType
procedure returns a resource type in the parametertheType
. You can callGetIndType
repeatedly over the entire range of the index to get all the resource types available in all resource forks open to your application. If the given index isn't in the range from 1 to the number of resource types as returned byCountTypes
,GetIndType
returns four null characters (ASCII code 0).SPECIAL CONSIDERATIONS
TheGetIndType
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 more information about the
CountTypes
function, see page 1-97.