executelocal
CODE

The executelocal statement allows a procedure to build a “mini-procedure” on the fly, then executes that procedure. Unlike the execute statement, this statement shares local variables with the procedure that calls it.


Parameters

This statement has one parameter:

code – Source code of the procedure to be executed.


Description

The executelocal statement works exactly like the execute statement, but it shares local variables with the procedure that calls it.

This rather silly example will display the message hello

local alpha
alpha="hello"
executelocal {message alpha}

Note: You must not use the return statement inside the procedure, or if you do, it must be preceded by the UseMyLocalVariables statement.


History

VersionStatusNotes
1.0No ChangeCarried over from Panorama 6.0.