6. Working with Arrays, Table Fields, and Collections : Table Fields : Table Field Components : Table Body
 
Share this page                  
Table Body
The table body represents the set of columns in the table field. To access this part of a table field, use the TableField object's TableBody attribute. This attribute's data type is StackField. You can use this attribute to change visual properties of the table body's line boundary and background. The syntax is:
field(tablefield).TableBody.attribute = value
attribute
Specifies an attribute of the StackField object. For example, the following statement sets the width of the outline of the table:
field(custtable).tablebody.outlinewidth = LW_THIN;
The TableBody attribute is also useful in obtaining information about a table field (such as column names and data types) that is accessed at runtime but unknown at development time.
For a discussion and example of finding which table field a field is in, and then using the TableBody attribute to iterate through the Child Fields, see WhichTableField Method (see WhichTableField Method).