Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!jarthur!nntp-server.caltech.edu!inside!magyar From: magyar@inside.caltech.edu (Igen Magyar Istvani) Newsgroups: comp.lang.pascal Subject: Re: Bug In Turbo Pascal v6.0 - crt unit/checkbreak Message-ID: <1991May9.042604.4024@nntp-server.caltech.edu> Date: 9 May 91 04:26:04 GMT References: <1991May9.032547.13756@cs.odu.edu> Sender: magyar@through.cs.caltech.edu Followup-To: comp.lang.pascal Organization: California Institute of Technology Lines: 35 In article <1991May9.032547.13756@cs.odu.edu> popkin@ceawlin.cs.odu.edu (Brian N. Popkin) writes: > >I noticed that the checkbreak function only works part of the time. > >ex) > >program poker(input,output); > >uses crt; > >var > CheckBreak : Boolean; > >begin > > { extra code deleted } > > CheckBreak := FALSE; >end. > >in the previous program, when I hit control-break, it still breaks and >doesn't disable the break key.. > >any suggestions? Hmm... from the above, it looks like you should set CheckBreak at the _beginning_ of your program, not the end. (Or did you mean that the extra code was deleted after you set CheckBreak?) At least, I haven't seemed to have any problems with the CheckBreak variable. Ted Turocy magyar@through.cs.caltech.edu ---------- "It _should_ have been called the Hungaro-Austrian Empire."