Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : EXIT_DISPLAY

EXIT_DISPLAY
Signals the standard exception EXIT_DISPLAY. (C)
Invocation
CALL EXIT_DISPLAY

Exceptions
 
Example
In the following example, EXIT_DISPLAY is associated with PF3 in the FCNKEYS(DELETE_EMPLOYEE) table:

 
EDITING TABLE : FCNKEYS(DELETE_EMPLOYEE)
COMMAND ==>
PF_KEY NAME COMMAND ROUTINE
----- ---------------- ---------------- ----------------
_ PF22 DELETE DEL_EMP
_ PF3 EXIT EXIT_DISPLAY

 
You use the UNTIL clause with the exception EXIT_DISPLAY, as in this rule:

 
DELETE_EMPLOYEE;
_
_ ---------------------------------------------------------------------
_ ------------------------------------------------------------+--------
_ FCNKEY_SPECS.FCNKEYS = FCNKEY_MSG('DELETE_EMPLOYEE'); | 1
_ INSERT FCNKEY_SPECS('DELETE_EMPLOYEE'); | 2
_ UNTIL EXIT_DISPLAY DISPLAY DELETE_EMPLOYEE : | 3
_ CALL PROCESS_FCNKEY('DELETE_EMPLOYEE'); |
_ END; |
_ ---------------------------------------------------------------------

 
When you press PF3, the EXIT_DISPLAY rule is called. This raises the exception EXIT_DISPLAY, causing the UNTIL loop to end.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved