19. Using 4GL : Referencing Fields, Variables, and Constants : Referencing Records
 
Share this page                  
Referencing Records
The syntax for referencing record attributes is similar to the syntax for accessing values in a table field:
record_identifier.attribute_identifier
If an attribute of a record is also a record, you can qualify it further by using a subattribute name to access the value it contains. The 4GL compilers check the name to make sure that the attribute type contains the named attribute. The following example references the attribute id in the record dba, which is itself an attribute of the record session_info.
session_info.dba.id