English (en) │
русский (ru) │
A global Variable is a variabe that is declared in the main section of a program or the interface part of a unit. Globals declared in a program cannot be accessed from within a unit. Globals declared in a unit can be accessed from within a program or another unit.
program GlobalVariables; var g: integer; begin end.
g is a global variable.