Přiřazení

[ LET ] Destination = [/cat/expressions|Expression]

Assigns the value of an expression to one of the following elements:
  • A local .

  • A function parameter.

  • A global or a Třída variable.

  • An array slot.

  • An objekt public variable.

  • An objekt vlastnosti.

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.

Examples

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

Viz také