Language Reference Guide : 4. System Classes : ActiveField Class : Declared Attribute
 
Share this page                  
Declared Attribute
Data Type: smallint
4GL Access: RW
The Declared attribute controls whether OpenROAD declares a variable for the field at compile time. Values are TRUE (the default) or FALSE. If TRUE and the field is named but has no named ancestors, the compiler declares a variable for this field (even for fields created in versions prior to OpenROAD 3.5). If FALSE and the field is named but has no named ancestors, a variable can be declared at runtime using the DeclareData Method.
If the field, example, is defined in Workbench with Declared set to FALSE, you must reference the field within 4GL code as field(example) rather than as example. It is not legal to define example as a local variable.
For a discussion of coding with variables whose Declared attribute is set to FALSE, see the Programming Guide.