Home > cat > assign 
 en fr de es it pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Voorgaande  Volgende  Bewerken  Hernoemen  Undo  Verversen  Search  Administratie  
Handleiding
Geschiedenis
 
Assignments
Destination = Expression

Assigns the value of an expression to one of the following elements:

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.

Voorbeeld

iVal = 1972
Name = "Gambas"
hObject.Property = iVal
cCollection[sKey] = Name
...

Visual Basic™ permits the use of the LET statement as a keyword, such as

LET A = 5

this is not permitted in Gambas.

But it is not true anymore in Gambas 3.

Zie ook

LET, Assignment Operators, SWAP, EXEC, NEW, OPEN, RAISE, SHELL