Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!icdoc!cc.ic.ac.uk!ace From: ace@cc.ic.ac.uk (Andriko del Saludo) Newsgroups: comp.lang.pascal Subject: Re: Preset KeyPressed Function? Message-ID: <1990Nov27.110455.27350@cc.ic.ac.uk> Date: 27 Nov 90 11:04:54 GMT References: <9011251958.AA08961@euler.Berkeley.EDU> Organization: Imperial College Computer Centre Lines: 29 Nntp-Posting-Host: sunc In article <9011251958.AA08961@euler.Berkeley.EDU> ndeng@EULER.BERKELEY.EDU writes: > >Hi Netters, > >I have a TP 5.5 problem which bothered me for several days but I cannot >find an answer. So if any of your gurus can give me a clue: > >The problem is: I am using ReadKey function for keyboard input. By >default, the KeyPressed function should always be false so the keyboard >will wait until the next keystroke. However, While I use ReadKey function >for keyboard input, KeyPressed function occasional becomes true. (It only >happens in the interactive mode, when I recompile the program, the problem >disappears). >....Stuff deleted... I've had the same problem from version 4 to version 5.5. One small addendum is that the problem appears when I am doing string input and not anytime else. It feels like a TP bug (I am not sure but I spent a lot of time trying different coding schemes and none of them ever fixed it) ace -- --------------------------------------------------------------------- - Andreas C. Enotiadis (ace@cc.ic.ac.uk, ace@grathun1.earn, etc) - - (I'm still thinking about something clever to put here...) - ---------------------------------------------------------------------