# Variable declarations

[ STATIC ] ( PUBLIC | PRIVATE ) Identifier [ Array declaration ] AS [ NEW ] Datatype

This declares a class global variable.

- This variable is accessible everywhere in the class it is declared.
- If the `PUBLIC` keyword is specified, it is also accessible to the other classes having a reference to an object of this class.
- If the `STATIC` keyword is specified, the same variable will be shared with every object of this class.
- If the `NEW` keyword is specified, the variable is initialized with a new instance of the class specified with Datatype .

Example

    STATIC PUBLIC GridX AS Integer
    STATIC PRIVATE bGrid AS Boolean

    PUBLIC Name AS String
    PUBLIC Control AS Object

    STATIC PRIVATE Synonymous AS NEW Collection

    PRIVATE hHandle[8] AS Label