Variables and typesLocal variablesThe syntax for defining a variable is' var type variable_name', for example: var Int i The available types are:
Global variablesA global variable, for example to implement a record numbering counter, is declared as follows: global Int counter "xxx/xxx/xxx" where the value in quotes is the address of the Storga field block which stores the value of the variable, which is obtained by displaying the properties of the block. Column variablesIn a report, for the calculation of a calculated field, we sometimes want to be able to use a value that precedes a calculation carried out on the previous line. For this, we use the notation '\u003c-' var Int somme <- 0 Which reads: at the start of the processing of the first line of the report, the variable 'sum' is equal to zero, then it keeps its value from one line to another. |