ID : 3809
= (Assignment) Operator
Function
To assign a right-hand value.
Syntax
Assignment statement and variable = value
Guaranteed Entry
- Assignment statement and variable
- Designate an assignment statement and a variable defined in the format.
- value
- Designate any data.
Description
A right-hand value is assigned to a variable or a designated element of a variable.
On the left-hand side, a statement and variable of the format specified in a variable or an assignment statement. On the right-hand side, data of the data type specified in an assignment statement is designated.
Related Terms
Operators, & Operator, * Operator, + Operator, - Operator, / Operator, ^ Operator, And Operator, Comparative Operators, Mod Operator, Not Operator, Or Operator, Xor Operator, \ Operator, >> Operator, << Operator
Attention
You cannot assign array variable in the right-hand side. Specify each element of an array.
Dim aaa(10) As Integer
Let i[0] = aaa 'This will be an error.
Let i[0] = aaa(10) 'Data is assigned properly
.
Example
-
ID : 3809