Open topic with navigation
WTSupported in traditional Synergy on Windows
USupported on UNIX
VSupported on OpenVMS
A variable specification to which a value is assigned. See Specifying variables for more information about variable specifications.
Either a literal or variable to assign to variable.
The DEPOSIT command assigns a value to a variable.
You must be able to read or write to a variable specification, but a data specification can be read‑only (in other words, a literal).
You can specify more than one variable=value assignment, separated by commas. When you specify more than one assignment, they’ll be processed from left to right.
^VAL routine arguments cannot be deposited.
If variable is a field in an object instance, the field must be accessible and writable.
The following example assigns the value 15 to the expression a(b) in the xyz routine. (Remember, xyz must be in the current calling chain.)
In the example below, i is set to 15 and x(15) is set to 12.
DEPOSIT i=15, x(i)=12
The example below deposits a nonobject value into a static field by specifying a fully qualified name.
deposit ns1.ns2.myclass.myfield = value