TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-181
#FRAME Built-In Function
#FRAME Built-In Function
Use #FRAME to establish a reference point for pushed variables. A subsequent
occurrence of #UNFRAME pops all variable levels pushed since the last #FRAME.
Result
#FRAME returns nothing.
Considerations
•
All variables pushed after a #FRAME are automatically popped when a matching
#UNFRAME is executed. This allows you to control local variables without having
to explicitly pop them.
•
Nesting of frames is allowed.
•
Use #VARIABLEINFO with the / FRAME / option to determine the frame level of a
particular variable.
•
#FRAME does not restrict the variable levels you can access. You can always
refer to all existing variable levels regardless of your frame.
•
If an error occurs in a macro or routine, TACL restores the frame level of all
variables to the level in effect when the macro or routine was invoked.
#FRAME