Skip to content

SET ​

Set the value of a variable.

Syntax ​

leo-grammar
SET VariableName:VariableValue .

VariableName : LowerCaseIdentifier .

VariableValue : anyValue .

Parameters ​

  • VariableName (LowerCaseIdentifier) - The name of the variable to set.
  • VariableValue (anyValue) - The value for the variable.

Details ​

The SET command allows to create new variables or overwrite the value of existing variables. It sets the variable to the value specified after its identifier VariableName. The value can be of any supported type and can be a literal or an expression. See LEO literals and expressions for further details.

See Also ​

Examples ​

List all the departments of responsible persons, which are specified in a record type attribute.
Two list of the departments (Design and Logistics; Finance, Development and Development)

leo
GRAPHREP

AVAL set-count-rows nRowCount:"Responsible Persons"
SET dY:(0cm)
FOR nI from:1 to:(nRowCount) {
  ATTR "Responsible Persons" y:(dY) row:(nI) col:"Department"
  SET dY:(dY + 12pt)
}

Versions and Changes ​

Available since ADOxx 1.3