Path: utzoo!utgpu!watserv1!watmath!att!att!tut.cis.ohio-state.edu!ucbvax!EULER.BERKELEY.EDU!ndeng From: ndeng@EULER.BERKELEY.EDU Newsgroups: comp.lang.pascal Subject: Preset KeyPressed Function? Message-ID: <9011251958.AA08961@euler.Berkeley.EDU> Date: 25 Nov 90 19:58:37 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 22 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). I am not sure if this is a bug or a feature of TP? IS there any way that I can preset the value of the KeyPressed function? Please reply to this account since I don't read the net regularly. If this is of general interest, I'll post a summary. Mike ndeng@euler.berkeley.edu