localparameters
VARIABLES

The localparameters statement creates one or more local variables and assigns parameter values to them.


Parameters

This statement has one parameter:

variables – is a list of variables to be created. Each variable should be separated from the next by a comma. If a variable name contains spaces or punctuation, or begins with any character except a letter or underscore, it should be surrounded by chevron (« ») characters.


Description

The localparameters statement creates one or more local variables and assigns parameter values to them. For example, the line:

localparameters x,y,z

is equivalent to:

local x,y,z
x=parameter(1)
y=parameter(2)
z=parameter(3)

If a parameter doesn’t exist, the local variable is still created, but it will contain an error value. You can set up a default value like this:

localparameters x,y,z
z = catcherror("default value",z)

If parameter 3 doesn’t exist, the variable z will be assigned the text default value.


See Also


History

VersionStatusNotes
10.0NewNew in this version.