Divides the value of a variable by the value of an expression and assigns the integer result to the variable.
variable \= expression
- Required. Any numeric variable.
- Required. Any numeric expression.
For further information on integer division, see \ Operator.
The following example uses the \= operator to divide one Integer variable by a second and assign the integer result to the first variable.
Dim var1 As Integer = 10 Dim var2 As Integer = 3 var1 \= var2 ' The value of var1 is now 3.
&= Operator | *= Operator | += Operator | -= Operator | /= Operator | = Operator | \ Operator | ^= Operator | Assignment Operators | Arithmetic Operators | Operator Precedence in Visual Basic | Operators Listed by Functionality | Assignment Statements