Important: The information in this document is obsolete and should not be used for new development.
Get1IndType
You can use theGet1IndTypeprocedure to get all the resource types available in the current resource file.
PROCEDURE Get1IndType (VAR theType: ResType; index: Integer);
theTypeGet1IndTypereturns, 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), theGet1IndTypeprocedure returns a resource type in the parametertheType.You can callGet1IndTyperepeatedly 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,Get1IndTypereturns four null characters (ASCII code 0).SPECIAL CONSIDERATIONS
TheGet1IndTypeprocedure 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 theResErrorfunction as described on page 1-47.For a description of the
Count1Typesfunction, see page 1-97.