CitectVBA Programming Reference > Understanding CitectVBA Language Basics > Scope of CitectVBA > Modular level scope

Modular level scope

Constants declared (using the Conststatement) and variables declared (using the Staticstatement) at the modular level (outside any procedure) in a CitectVBA file have modular scope to all procedures within that same CitectVBA module (file). This means that modular constants and static variables can only be referenced from a procedure located within the same file module, and cannot be referenced from outside of that file module. This has no effect in CitectVBA, even if declared using the Globalkeyword.

Modular level constants and static variables retain their assigned values for the entire runtime of the project.