AMT Help Files

Variable Naming and Parser Rules

Variable Naming Rules

When naming variable the following rules apply:

 

Short Naming

When local defined structure elements are name uniquely, LION allows a short form of referring to the element. Besides '<struct>.<element>' also the short form '<element>' is allowed. When the element name is not unique a parsing error will occur.

Note: The maximum structure depth for this short form naming is three!
 

Parsing Rules

When the parser is resolving variable names in the code the following rules and order of resolving apply:

  1. Variable name 'RESULT' within a routine
  2. Parameter names
  3. Routine local variable names
  4. Global class definition names
  5. Fully qualified local definition names
  6. Local print definition names, Local file id names, Screen definition names, Print definition names
  7. Local definition names including the short form element names
  8. Global definition names
  9. System definition names