'extract lastkey'

The extract Editor command is used in this statement to retrieve, or extract, the value stored in the lastkey parameter. The extracted value is stored in a REXX variable which by default has the same name as the parameter being extracted. The value stored in the REXX variable can then be examined to see which key or push-button was used to leave the dialog box.

If the user presses the Enter key or the Save push-button to leave the dialog box, the value of the lastkeyparameter (and REXX variable) will be ENTER.

If the user presses the Esc key or the Cancel push-button to leave the dialog box, the value of the lastkey parameter (and REXX variable) will be ESC.



extract Command
lastkey parameter