Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!ucsd!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: print variables on screen ? Keywords: lightspeedC 3.02,DrawText,DrawString Message-ID: <33386@ucbvax.BERKELEY.EDU> Date: 27 Dec 89 10:52:48 GMT References: <1837@ultb.isc.rit.edu> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 11 Str255 s; sprintf((char *) s, "money %d", moneyvar); CtoPstr((char *) s); MoveTo(12, 20); DrawString(s); will work. As for examples of TextEdit, see the MiniEdit example that came with your THINK C 3.02 compiler.