Difference between revisions of "SET INKEYDELAY"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 15: Line 15:
  
 
==See Also==
 
==See Also==
SET PCKEYS, SET MESSAGE TO, MESSAGE, @...MENU, MENU, WAIT, INKEY()
+
[[@...MENU]], [[MENU]], [[MESSAGE]], [[WAIT]], [[SET PCKEYS]], [[SET MESSAGE]], [[INKEY()]]
  
  
Line 32: Line 32:
 
==Products==
 
==Products==
 
Recital Mirage Server, Recital Terminal Developer
 
Recital Mirage Server, Recital Terminal Developer
 +
[[Category:Documentation]]
 +
[[Category:Commands]]
 +
[[Category:Set_Commands|INKEYDELAY]]

Revision as of 17:04, 11 March 2009

SET INKEYDELAY

Class

Keyboard Events


Purpose

Enable or disable delays between checks for keys pressed in the INKEY() function


Syntax

SET INKEYDELAY ON | OFF | (<expL>)


See Also

@...MENU, MENU, MESSAGE, WAIT, SET PCKEYS, SET MESSAGE, INKEY()


Description

SET INKEYDELAY ON controls the wait period for the INKEY() function. The INKEY() function returns a zero if no key has been pressed, or the ASCII value of the key which has been pressed. When INKEYDELAY is ON, a check is made once a second for a keystroke. If INKEYDELAY is OFF, the check is made continually. The default setting for INKEYDELAY is OFF. If INKEYDELAY is set OFF, then DO WHILE loops that wait for user input with the INKEY() function may be very CPU intensive.


Example

set inkeydelay on
do while inkey()=0
//...
enddo


Products

Recital Mirage Server, Recital Terminal Developer