PROGRAM-NAME( n )The numeric argument. If n is 1, the name of the current program is returned. If n is 2, the name of the calling program is returned. If there is no calling program then you have reached the top of the call stack and the AVM returns the Unknown value (?).
/* Note this program should be run as a subroutine. *//* The deeper the nesting, the better the illustration. */DEFINE VARIABLE level AS INTEGER NO-UNDO INITIAL 1.REPEAT WHILE PROGRAM-NAME(level) <> ?:DISPLAY LEVEL PROGRAM-NAME(level) FORMAT "x(30)".level = level + 1.END.
"internal-procedure-name source-file-name"
"USER-INTERFACE-TRIGGER source-file-name"
"SYSTEM-TRIGGER source-file-name"
"type-TRIGGER source-file-name"Where type is either ASSIGN, CREATE, DELETE, FIND, or WRITE.
"method-name class-file-name"Where class-file-name is the name of the class definition (.cls) file in which method-name is implemented.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |