Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Interapplication Communication /
Chapter 4 - Responding to Apple Events / Reference to Responding to Apple Events
Routines for Responding to Apple Events / Counting the Items in Descriptor Lists


AECountItems

You can use the AECountItems function to count the number of descriptor records in any descriptor list.

FUNCTION AECountItems (theAEDescList: AEDescList; 
                       VAR theCount: LongInt): OSErr;
theAEDescList
The descriptor list to be counted.
theCount
The AECountItems function returns the number of descriptor records in the specified descriptor list in this parameter.
RESULT CODES
noErr0No error
errAENotAEDesc-1704Not a valid descriptor record
SEE ALSO
For an example of the use of AECountItems, see "Getting Data Out of a Descriptor List," which begins on page 4-31.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996