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
| noErr | 0 | No error |
| errAENotAEDesc | -1704 | Not 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.