Kbase 15724: How to Terminate a Smart Application Back to the OS
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to Terminate a Smart Application Back to the OS
INTRODUCTION:
=============
This Technical Support Knowledgebase entry describes how to have a
SmartObject application exit back to the operating system rather than
the Procedure Editor. See also Knowledgebase Entry 13937 "User's
application exits to Procedure Editor: how to fix" for additional
information.
WHY YOU NEED TO KNOW THIS:
===========================
You need to know this so that you can "package" your finished
application so that it behaves as an end-user would expect any normal
application to behave. You may find that if you start an application
from an icon or command line, you return to the procedure editor
when you are finished instead of the operating system. The following
is one suggested method for using quit to leave an application.
PROCEDURAL APPROACH:
====================
Assuming that you have a push button which the user will click in
order to exit your application attach the following code to the
designated triggers and procedures.
1) Attach this code to the CHOOSE trigger for your push button:
DO:
RUN dispatch IN THIS-PROCEDURE ('exit':U).
END.
2) Attach this code to the LOCAL-EXIT procedure:
APPLY "CLOSE":U TO THIS-PROCEDURE.
QUIT. /* This used to be a RETURN statement, now we want to */
/* QUIT instead. */
/* Remember, if you execute this statement while */
/* developing (i.e. you are in the UIB) you will be */
/* closing down just your application, not the entire */
/* Progress session. */
Progress Software Technical Support Note # 15724