executelocal
PROGRAM
,
PARAMETERS

The executelocal statement is the same as the execute statement, but it shares local variables with the procedure that called it.


Parameters

This statement has two parameters:

program – is the text (source code) of the program you want to run.

parameters – is a list of parameters to be passed to the subroutine. This list is optional, you don’t have to pass any parameters if you don’t need to. See parameter( and setparameter for more information on accessing parameters within a subroutine.


Description

This statement is the same as the execute statement, but it shares local variables with the procedure that called it.

This rather silly example will display the message Goodbye.

local greeting
greeting="Hello"
executelocal {greeting="Goodbye"}
message greeting

See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0 but now now allows parameters to be passed to and from the subroutine using the parameter( function and setparameter statement. Also, it is now ok to use the return statement inside the procedure without putting a UseMyLocalVariables statement immediately in front of it (the UseMyLocalVariables statement can be ommitted).