Caution:
READKEY STREAM stream STREAM-HANDLE handle PAUSE nSTREAM streamSpecifies the name of a stream. If you do not name a stream, the AVM uses the unnamed stream. See the DEFINE STREAM statement.STREAM-HANDLE handleSpecifies the handle to a stream. If handle it is not a valid handle to a stream, the AVM generates a run-time error. Note that stream handles are not valid for the unnamed streams. See the chapter on alternate I/O sources in OpenEdge Development: Programming Interfaces for more information on streams and stream handles.PAUSE nThe READKEY statement waits up to n seconds for a keystroke. You can choose a whole or a fractional value for the time-out interval. If the time-out period you specify is a fractional value, the value is rounded to the nearest whole millisecond. If you do not press a key during that amount of time, READKEY ends, and sets the value in LASTKEY to -1.
For more information on monitoring keystrokes, see OpenEdge Development: Programming Interfaces.
In the context of the .NET blocking method, System.Windows.Forms.Application:Run( ), if you directly or indirectly execute the READKEY statement within an editing block while displaying a non-modal ABL window, in certain contexts (such as within a user-defined function or non-VOID method) this statement execution raises the STOP condition. For more information on the .NET Application:Run( ), method, see the reference entry for the WAIT-FOR statement (.NET and ABL). For more information on editing blocks, see the EDITING phrase entry.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |