|Navigation: Clarion.Net (Clarion#) > Clarion# Language Extensions > Variable and Entity Attributes >====== PUBLIC (set variable public to all CLASS modules) ======|
The PUBLIC attribute specifies that the variable on which it is placed is visible to all PROCEDUREs defined within the source module containing the methods of the CLASS structure (whether members of the CLASS or not). This encapsulates the data from other CLASSes.
PUBLIC is also valid when used with static (threaded or non-threaded) variables outside of a CLASS structure. If a static variable is declared with the PUBLIC attribute, the compiler generates it without a public external name. Hence, it can only be used by procedures defined in the same source module.
MyNumber LONG,PUBLIC !make variable public to all procedures in module