Language Reference Guide : System Classes : TableField Class : TableBody Attribute
 
Share this page          
TableBody Attribute
Data Type: StackField
4GL Access: R
The TableBody attribute is a stack field that contains the set of column fields for a table field.
If you make any changes to the SeparatorLineWidth of the TableBody stack field, those changes are reflected in the TableHeader stack field. This feature helps to ensure that the body of the table field and the column headers remain in alignment.
To iterate through to the columns of the table field, use the following syntax:
field(tablefield).TableBody.ChildFields[x]
If you want to access a specific column, a more efficient way to do so is to use the following syntax to get the ColumnField object:
field(tablefield[*].columnname)
For more information and examples of use, see the introductory section of TableField Class) and ColumnField Class.