Previous Next

SOURCE-PROCEDURE system handle
A handle to the procedure file that contains the original invocation (RUN statement or function invocation) of the current internal procedure or user‑defined function.
Syntax 
 
SOURCE-PROCEDURE [ :attribute | :method ]
attribute
An attribute of the SOURCE-PROCEDURE handle.
method
A method of the SOURCE-PROCEDURE handle.
Attributes
The SOURCE-PROCEDURE handle supports all the attributes of the procedure object handle. For a list of these attributes, see the reference entry for the Procedure object handle in this section.
Methods
The SOURCE-PROCEDURE handle supports all the methods of the procedure object handle. For a list of these methods, see the reference entry for the Procedure object handle in this section.
Examples
The following scenarios illustrate using SOURCE-PROCEDURE without procedure overriding, with procedure overriding, and with super and non‑super RUNs:
Scenario 1: Using SOURCE-PROCEDURE without procedure overriding
The following scenario uses SOURCE-PROCEDURE without procedure overriding:
1.
2.
3.
In this scenario:
*
*
Scenario 2: Using SOURCE-PROCEDURE with procedure overriding
The following scenario uses SOURCE-PROCEDURE with procedure overriding:
1.
2.
3.
Note:
4.
5.
6.
In this scenario:
*
*
Scenario 3: With SUPER and non-SUPER RUNs
The following scenario shows how the value of SOURCE-PROCEDURE changes when a non‑super RUN occurs:
1.
2.
3.
4.
5.
6.
7.
Note:
8.
Note:
In this scenario:
*
*
*
*
For a sample program that uses SOURCE-PROCEDURE, see the reference entry for the RUN SUPER statement.
Notes 
*
*
*
See also 
ADD-SUPER-PROCEDURE( ) method, REMOVE-SUPER-PROCEDURE( ) method, RUN SUPER statement, SUPER function, SUPER-PROCEDURES attribute, TARGET-PROCEDURE system handle

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.