Assigns a value to a variable or property.
variable = value
- A variable or property that you can change.
- An expression of a type compatible with
The element on the left side of the equals sign (
=) can be a simple scalar variable, a property, or an array element.
= assigns the value on its right to the variable or property on its left.
This operator is different from the comparison operator
See Comparison Operators for more information.
Because ViviFire uses this operator for two different operations, you usually cannot use it for chained assignments.
For example, the statement
a = b = c contains one assignment and one equality test.
But the statement
a := b := c contains two assignments.
The following example demonstrates the use of
= as an assignment operator and comparison operator in the same statement:
Dim x, y 'x and y are initially zero x = y = 0 ' y is being tested for equality to zero
' Change value of property #obj.value = 42