Previous Next

TARGET-PROCEDURE system handle
From within an internal procedure: A handle to the procedure file mentioned, explicitly or implicitly, by the original RUN statement that invoked (perhaps through a chain of super procedures) the current internal procedure.
From within a user‑defined function: A handle to the procedure file mentioned, explicitly or implicitly, by the original function invocation that invoked (perhaps through a chain of super versions of functions) the current user‑defined function.
Syntax 
 
TARGET-PROCEDURE [ :attribute | :method ]
attribute
An attribute of the TARGET-PROCEDURE handle.
method
A method of the TARGET-PROCEDURE handle.
Attributes
The TARGET-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 TARGET-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 TARGET-PROCEDURE without procedure overriding, with procedure overriding, and with super and non‑super RUNs:
Scenario 1: Using TARGET-PROCEDURE without procedure overriding
The following scenario uses TARGET-PROCEDURE without procedure overriding:
1.
2.
3.
In this scenario:
*
*
Scenario 2: Using TARGET-PROCEDURE with procedure overriding
The following scenario uses TARGET-PROCEDURE with procedure overriding:
1.
2.
3.
Note:
4.
5.
6.
In this scenario:
*
*
Scenario 3: With procedure overriding and additional complications
The following scenario uses TARGET-PROCEDURE with procedure overriding:
1.
2.
3.
Note:
4.
5.
In this scenario:
*
*
Scenario 4: With SUPER and non-SUPER RUNs
The following scenario shows how the value of TARGET-PROCEDURE changes when a non‑super RUN occurs:
1.
2.
3.
4.
5.
6.
Note:
7.
Note:
In this scenario:
*
*
For a sample program that uses TARGET-PROCEDURE, see the reference entry for the RUN SUPER statement.
Notes 
*
*
*
*
*
See also 
ADD-SUPER-PROCEDURE( ) method, REMOVE-SUPER-PROCEDURE( ) method, RUN SUPER statement, SOURCE-PROCEDURE system handle, SUPER function, SUPER-PROCEDURES attribute, TARGET-PROCEDURE system handle

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