Kbase P101489: 4GL/ABL: How to avoid exiting to the Progress Editor when closing a 4GL/ABL application?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  18/03/2010 |
|
Status: Verified
GOAL:
4GL/ABL: How to avoid exiting to the Progress Editor when closing a 4GL/ABL application?
GOAL:
How to exit out of the session to the Operating System?
GOAL:
How to use the QUIT statement to close a session?
FACT(s) (Environment):
All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x
FIX:
If the application is running in a character (CHUI) mode, then create a MAIN-BLOCK in the first procedure of the application and add the QUIT statement after its END statement.
If the application is running in a graphical (GUI) mode, then add the QUIT statement after the END statement of the MAIN-BLOCK created by the AppBuilder:
MAIN-BLOCK:
DO ON ERROR UNDO MAIN-BLOCK, LEAVE MAIN-BLOCK
ON END-KEY UNDO MAIN-BLOCK, LEAVE MAIN-BLOCK:
/*Application code goes here*/
END.
/* QUIT statement goes here*/
QUIT.