Path: utzoo!attcan!uunet!jarthur!usc!cs.utexas.edu!rice!brazos.rice.edu!pete From: pete@titan.rice.edu (Pete Keleher) Newsgroups: comp.sys.mac.programmer Subject: Re: How to find # of items in DITL? Message-ID: Date: 7 Feb 90 17:06:24 GMT References: <292@fornax.UUCP> Sender: root@rice.edu Distribution: na Organization: Whatsamatta U Lines: 13 In-reply-to: mcdonald@fornax.UUCP's message of 6 Feb 90 10:05:35 GMT > 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) Your filterProc's first argument is a dialogPtr. If you cast this to a "dialogPeek", you can reference a field called "items" (or something like that). "Items" is a handle to the DITL list in memory, the first short word of which is the number of items in the dialog minus one. -- Pete Keleher pete@titan.rice.edu