Xref: utzoo comp.lang.postscript:3081 comp.sys.mac:40817 Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.lang.postscript,comp.sys.mac Subject: Re: Need help in THINK C Keywords: C programming Message-ID: <32126@ucbvax.BERKELEY.EDU> Date: 24 Oct 89 05:33:23 GMT References: <5306@lindy.Stanford.EDU> <15790@netnews.upenn.edu> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 20 Here is how you retrieve the text from an edittext item in a dialog. Remember to do this _before_ you DisposDialog() the dialog. First, define a helper routine /* GetDIHandle - return handle value of dialog item */ Handle GetDIHandle(i)short i;{ short theType; Handle theHandle; Rect theRect; GetDItem(thePort, i, &theType, &theHandle, &theRect); return theHandle; } Then, you can fetch it like this: Str255 s; SetPort(myDialog); GetIText(GetDIHandle(ITEM), s);