How to get all internal procedure names which are in one procedure file

Here is example to run event trigger procedure if procedure exists:
case event:
WHEN {&ON-CLOSE-DOCUMENT} then
do:
if lookup ( "OnCloseDocument",
THIS-PROCEDURE:INTERNAL-ENTRIES ) > 0 then
do:
run OnCloseDocument ( rid-doc ) NO-ERROR.
if ERROR-STATUS:ERROR then RETURN "ERROR".
end.
RETURN "OK".
end.
 
The example's there already.
Code:
if lookup ( "OnCloseDocument",
       THIS-PROCEDURE:INTERNAL-ENTRIES ) > 0 then
    do:
      run OnCloseDocument ( rid-doc ) NO-ERROR.
end.
 
Back
Top