Structured variables

Variables can be declared with a composite data type, based on simple data types.

To declare a structured variable, use a RECORD definition.

For example:
MAIN
  DEFINE myrec RECORD
     id INTEGER,
     name VARCHAR(100)
  END RECORD
  DEFINE myarr DYNAMIC ARRAY OF RECORD
     id INTEGER,
     name VARCHAR(100)
  END RECORD
  LET myarr[2].id = 52
END MAIN
Consider defining a user type to list the record members once and reuse the type in all variable definitions:
TYPE mytype RECORD
     id INTEGER,
     name VARCHAR(100)
  END RECORD

MAIN
  DEFINE mv mytype
  CALL func1()
END MAIN

FUNCTION func1()
  DEFINE fv mytype
  ...
END FUNCTION