Progress
ADM 2 Reference


exitObject (smart.p)

Passes an exit request to its container.

Parameters: None

Returns: Nothing (procedure)

Notes:

Examples:

/*  This example is taken from the standard code for the “Done” button in 
    the AppBuilder palette. If the object containing the button is a  
    SmartWindow, then the code executes the standard convention for  
    destroying a SmartWindow, APPLY "CLOSE". If not, the code runs 
    exitObject to pass the event up to its Container, otherwise the effect 
    would be to destroy only the SmartPanel or other SmartObject 
    containing the button, which is probably not what is intended. */ 
&IF "{&PROCEDURE-TYPE}" EQ "SmartWindow" &THEN 
     RUN exitObject. 
&ELSE 
     APPLY "CLOSE":U TO THIS-PROCEDURE. 
&ENDIF 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095