Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!shelby!siegman@sierra.Stanford.EDU From: siegman@sierra.Stanford.EDU (Anthony E. Siegman) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK PASCAL's Observe not working right?! Message-ID: <456@sierra.stanford.edu> Date: 12 Jan 90 21:48:35 GMT References: <15719@eerie.acsu.Buffalo.EDU> Sender: siegman@sierra.STANFORD.EDU (Anthony E. Siegman) Reply-To: siegman@sierra.UUCP (Anthony E. Siegman) Organization: Stanford University Lines: 12 In article <15719@eerie.acsu.Buffalo.EDU> volaski@acsu.buffalo.edu (maurice volaski) writes: >Below is a program written in THINK Pascal that performs the >Macintosh's famous task of command-period to cancel. The programs >loops idly until command-period is pressed and then it quits. (and then follows _36 lines_ of Pascal code) (which doesn't work) Good God! In MS QuickBASIC you say ON BREAK GOSUB BreakHandler: BREAK ON and write your BreakHandler routine, and that's it!