# Assignment

Variable = Expression

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

- A local variable.
- A function parameter.
- A global (class) variable.
- An array slot.
- An object public variable.
- An object property.

Example

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

See also

Array, Variable declarations

Previous: Asnh / ASinh Next: Atn / ATan