2.0
3.0
>
lang
>
assignment
Previous
Next
Edit
Rename
Undo
Search
Administration
Documentation
Warning! This page is not translated.
See english version
Assignments
[
LET
]
Destination
=
Expression
Assigns the value of an
expression
to one of the following elements:
A local
variable
.
A function parameter.
A global or a
class
variable.
An array slot.
An
object
public variable.
An
object
property
.
This cannot be used to set the value returned by a function. To assign the value of a
function
, use the
RETURN
statement.
Some instructions that return something may use the assignment syntax too:
EXEC
,
NEW
,
OPEN
,
RAISE
,
SHELL
.
Example
iVal = 1972
Name = "Gambas"
hObject.Property = iVal
cCollection[sKey] = Name
...
See also
LET
,
Assignment Operators
,
SWAP
,
EXEC
,
NEW
,
OPEN
,
RAISE
,
SHELL