Private

This statement is used at module level to declare private variables and allocate storage space.

Syntax

Private varname[([subscripts])][, varname[([subscripts])]] . . .

Parameters

varname
Name of the variable; follows standard variable naming conventions.
subscripts
Dimensions of an array variable; up to 60 multiple dimensions can be declared. The subscripts parameter uses the following syntax:
upper [, upper] . . .

The lower bound of an array is always 0.

Remarks

Private variables are available only to the module in which they are declared.

All variables, constants, and procedures in a code module are public regardless of whether the Private statement is used. All code in modules is concatenated into one global public name space during compilation.