Out (Reserved Word)

image\trumpet2.gif Disclaimer

A modifier that indicates a method parameter is to be passed by reference which allows any value changed to the parameter to be accessed from the calling code.  The parameter must be assigned to in the method code.

Example

The localValue parameter of myMethod is declared as an input only string value.  

The declared value of myValue in initialized to contain the string "test" and when myMethod is called the by-reference parameter is changed to "new" which also changes the original myValue variable which plots a value of "new".
 

var: myValue("test");

Method void myMethod(Out String localValue)

begin
    localValue = "new";           
end;

myMethod(myValue);

plot1(myValue)