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 theCountDITL
function.
FUNCTION CountDITL (theDialog: DialogPtr): Integer;
theDialog
- A pointer to a dialog record.
DESCRIPTION
TheCountDITL
function returns the number of current items in a dialog box. You typically useCountDITL
in conjunction withShortenDITL
to remove items from a dialog box.SPECIAL CONSIDERATIONS
TheCountDITL
function 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 theGestalt
function with thegestaltDITLExtAttr
selector. Test the bit
indicated by thegestaltDITLExtPresent
constant in theresponse
parameter. If the bit is set, thenCountDITL
is available.SEE ALSO
TheGestalt
function is described in the chapter "Gestalt Manager" in Inside Macintosh: Operating System Utilities.