Understanding global blocks

Global symbols can be defined with the GLOBALS instruction

The GLOBALS instruction can be used to declare variables, constants and types for the whole program.

Important: Defining global elements shared by all modules of a program is an old programming concept. To increase code re-usability and readability, avoid global elements in your programs. Use modular concepts instead, by defining PUBLIC variables, constants and types in modules that will be imported into other modules with the IMPORT FGL instruction.