Function GetReader() Foundation
Implements the standard READ behavior of a single Get object for the key codes returned by the function Inkey().
GetReader( <oGet> ) --> NIL
The return value of GetReader() is always NIL.
GetReader() implements the standard READ behavior of individual Get objects and reads the keyboard with the function Inkey(). The keyboard codes of Inkey() are handled by the function GetApplyKey(). GetReader() also takes care of data validation before and after data input.
GetReader() is a compatibility function which exists to facilitate porting Clipper programs to Xbase++. In order to simplify porting, GetReader() is the default function with which keyboard entry is handled by the Get system. In native Xbase++ programming, AppEvent() should be used to read events instead of Inkey(). Switching between reading the keyboard using Inkey() and reading events using AppEvent() can be done by calling GetEnableEvents(.T.|.F.).
User-defined Get readers can be used to replace the default reader of the Xbase++ Get system by specifying a function call in the form of a code block, which replaces GetEventReader() as the input handler. This code block is assigned to the instance variable oGet:reader. When the instance variable contains a code block, the block is executed and the referenced function gets passed the Get object instead of GetEventReader().
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.