This section describes the input and output parameters for the adecomm/_adeevnt.p procedure.
Input parameters
The adecomm/_adeevnt.p procedure takes the following input parameters:
p_product
The ADE product code (for the Procedure Editor, use Editor).
p_event
The name of an event: NEW, OPEN, BEFORE-OPEN, CLOSE, BEFORE-CLOSE, SAVE, BEFORE-SAVE, COMPILE, BEFORE-COMPILE, RUN, BEFORE-RUN, DEBUG, BEFORE-DEBUG, CHECK-SYNTAX, BEFORE-CHECK-SYNTAX, CHECK-SYNTAX-PARTIAL, and BEFORE-CHECK-SYNTAX-PARTIAL.
p_context
A string used to uniquely identify the file being edited. The Procedure Editor uses the edit widget‑handle of the buffer for this value. A specific file has the same context ID for all its file operations; however, if you close a file and then open it again, the context number will change.
p_other
Additional information passed about an event (for example, a SAVE event normally passes the filename for the save).
The current filename associated with the window. The name is unknown (?) if it was not set; for example, after a File→ New.
Output parameters
The adecomm/_adeevnt.p procedure uses the following output parameters:
p_ok
A logical value used to approve or cancel a subset of ADE events. For example, returning a FALSE value from the BEFORE-SAVE event cancels the save.