Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ut-ngp.UUCP Path: utzoo!watmath!clyde!cbosgd!gatech!ut-sally!ut-ngp!rick From: rick@ut-ngp.UUCP (Rick Watson) Newsgroups: net.micro.mac Subject: Re: HELP!!! Message-ID: <2756@ut-ngp.UUCP> Date: Fri, 3-Jan-86 12:42:27 EST Article-I.D.: ut-ngp.2756 Posted: Fri Jan 3 12:42:27 1986 Date-Received: Sat, 4-Jan-86 06:02:25 EST References: <430@ssc-vax.UUCP> Distribution: net Organization: UTexas Computation Center, Austin, Texas Lines: 22 > Could I have a round of "yes ModalDialog works as advertized" back at me. >I can't for the life of me figure out why the following code kills me with >error message #2. > begin > myDialog := GetNewDialog(DResNum,ADR(dRec),NIL); > repeat > ModalDialog(NIL,Item); > until Item = 1; > end Yes it works as advertised. BUT, please note that the behind parameter should be -1, not NIL. When all else fails, read the manual (Inside Macintosh) carefully. Rick Watson University of Texas Computation Center arpa: rick@ngp.UTEXAS.EDU rick@ngp.ARPA uucp: ...seismo!ut-sally!ut-ngp!rick rick@ut-ngp.UUCP bitnet: ccaw001@utadnx phone: 512/471-3241