6. Working with Arrays, Table Fields, and Collections : Table Fields : Table Field Components : Table Title
 
Share this page                  
Table Title
You can change the table title's text and appearance, for example, its typeface or the color of its background.
You access the title's text with the Title attribute of the TableField object. This attribute has a data type of varchar(256). The syntax is:
field(tablefield).Title = title_string
title_string
Specifies a quoted literal or a varchar variable
For example, the following statement changes the title of the custtable table field:
field(custtable).title = 'Customer Information';
To change the visual properties of the title, use the TitleTrim attribute, which has a data type of FreeTrim object. The syntax is:
field(tablefield).TitleTrim.attribute = value
attribute
Specifies an attribute of the FreeTrim object
For example, the following statement sets the background color of the table's title:
field(custtable).titletrim.bgcolor = CC_PALE_BLUE;