SET

Assign a value to a set of variables

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
SET variable[, ...] = expression

Arguments

variable

One or more variables to which a value will be assigned. All variables within a single SET statement must be the same data type.

expression

An expression whose result is assigned to each of the variables in the SET statement.

Discussion

The SET statement assigns a single value to one or more variables, which is useful if you have a large set of variables to assign to the same value.

Tip

We recommend using the SET statement rather than individually assigning the same value to ­multiple fields.

The data type for expression must be compatible with the data type for variable.

Examples

set dflag1, dflag2, dflag3 = 1