Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven.umd.edu!umbc3.umbc.edu!umbc5.umbc.edu!cs202216 From: cs202216@umbc5.umbc.edu (cs202216) Newsgroups: comp.lang.pascal Subject: Re: Bug In Turbo Pascal v6.0 - crt unit/checkbreak Message-ID: <1991May9.213735.17894@umbc3.umbc.edu> Date: 9 May 91 21:37:35 GMT References: <1991May9.032547.13756@cs.odu.edu> Sender: newspost@umbc3.umbc.edu (News posting account) Organization: University of Maryland Baltimore County Lines: 32 In article <1991May9.032547.13756@cs.odu.edu> popkin@ceawlin.cs.odu.edu (Brian N. Popkin) writes: >I am writing a simple poker game in turbo pascal v6.0.. > >I am using the crt unit.. > >I noticed that the checkbreak function only works part of the time. > >ex) > >program poker(input,output); > >uses crt; > >var > CheckBreak : Boolean; > { Stuff deleted } > >in the previous program, when I hit control-break, it still breaks and >doesn't disable the break key.. > >any suggestions? > >Brian > The problem with this is the VAR CheckBreak : boolean in the beginning. Take that out, and it will work. -- Internet: cs202216@umbc5.umbc.edu (Matt Gove)