Scope of Data Containers

The following table summarizes the scope differences between data containers.

Container Scope Example
Constants Private
#DEFINE ERRSTR "Error!"
Variables Public, private, or local
Var = 7
Arrays Public, private, or local
ArrayName[1,1] = "John Brown"
Fields Permanent storage, accessible while the table containing the records is open
REPLACE name WITH "John Brown"
Object Properties Referenced through the object and the object's container hierarchy
txtCustomer.Value = "John Brown"