Change the order of super procedures
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
You can rearrange the order of super procedures in two ways:
- If the
ADD-SUPER-PROCEDURE()method is executed for a procedure handle already in the stack, the AVM moves it to the head of the list (that is, to the position of being searched first). If the procedure was already first in the stack, no change occurs and no error results. For example, this sequence of statements results in theSUPER-PROCEDURESattribute returning the handle ofSuper2followed by the handle ofSuper1:hProc:ADD-SUPER-PROCEDURE(hSuper1). hProc:ADD-SUPER-PROCEDURE(hSuper2). hProc:ADD-SUPER-PROCEDURE(hSuper2).And this sequence results in theSUPER-PROCEDURESattribute returning the handle ofSuper1followed by the handle ofSuper2:hProc:ADD-SUPER-PROCEDURE(hSuper1). hProc:ADD-SUPER-PROCEDURE(hSuper2). hProc:ADD-SUPER-PROCEDURE(hSuper1). - You can also rearrange the order of super procedure handles on the stack by invoking
a sequence of
REMOVE-SUPER-PROCEDURE()andADD-SUPER-PROCEDURE()methods. EachREMOVE-SUPER-PROCEDURE()method removes that handle from the list, wherever it is. And eachADD-SUPER-PROCEDURE()method adds the named handle to the head of the list. A handle is never added to the list a second time.