Path: utzoo!attcan!uunet!mailrus!iuvax!bsu-cs!mithomas From: mithomas@bsu-cs.bsu.edu (Michael Thomas Niehaus) Newsgroups: comp.sys.mac.programmer Subject: Re: How to find # of items in DITL? Message-ID: <10741@bsu-cs.bsu.edu> Date: 8 Feb 90 14:04:07 GMT References: <292@fornax.UUCP> Reply-To: mithomas@bsu-cs.UUCP (Michael Thomas Niehaus) Distribution: na Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 23 > I'm working on a program which reads in a Dialog and then massages the > elements. How can I find the number of items in the dialog's item list? > (Under Think C) I don't know if this is what you are looking for, but the Communications Toolbox already includes a routine that does this (which will be included in System 7.0, and 6.0.x if you get the CommToolbox from APDA). Some of the nice routines included are: AppendDITL(theDialog,theDITL,method); numItems = CountDITL(theDialog); ShortenDITL(theDialog,numberOfItems); Also, the AppleTalk "Standard File" utilities NuLookup and NuPLookup are also included. -Michael -- Michael Niehaus UUCP: !{iuvax,pur-ee}!bsu-cs!mithomas Apple Student Rep ARPA: mithomas@bsu-cs.bsu.edu Ball State University AppleLink: ST0374 (from UUCP: st0374@applelink.apple.com)