This procedure lets you update the ix variable, and immediately processes each of your keystrokes. The READKEY statement reads each of the keys you press. The APPLY statement applies, or executes, each keystroke. This is a very simple EDITING phrase and is the same as entering UPDATE ix.
While in the SalesRep field, the user can press
SPACEBAR to scroll through the possible values for the
SalesRep field. If the user presses the
TAB,
BACKTAB,
GO,
RETURN, or
END-ERROR key, the procedure executes that key. If the user presses any other key while in the
SalesRep field, the terminal beeps.