Important: The information in this document is obsolete and should not be used for new development.
CountDITL
You can determine the number of items in a dialog box by using theCountDITLfunction.
FUNCTION CountDITL (theDialog: DialogPtr): Integer;
theDialog- A pointer to a dialog record.
DESCRIPTION
TheCountDITLfunction returns the number of current items in a dialog box. You typically useCountDITLin conjunction withShortenDITLto remove items from a dialog box.SPECIAL CONSIDERATIONS
TheCountDITLfunction is available in System 7 and in earlier versions of the Communications Toolbox. Before callingCountDITL, you should make sure that it is available by using theGestaltfunction with thegestaltDITLExtAttrselector. Test the bit
indicated by thegestaltDITLExtPresentconstant in theresponseparameter. If the bit is set, thenCountDITLis available.SEE ALSO
TheGestaltfunction is described in the chapter "Gestalt Manager" in Inside Macintosh: Operating System Utilities.