10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table FieldsThe FormField object is high in the system class hierarchy. Most of its usefulattributes are associated with actual field objects, such as entry field or listfield, that are subclasses of the FormField object. Therefore, you must castreferences to the ProtoField attribute to the appropriate field type. The syntaxis:fieldtype(field(tablefield[*].column).ProtoField).attribute = valuefieldtypeSpecifies the class of the column's fieldsattributeSpecifies any appropriate attribute of that class.For more information about casting, see How You Can Work with Attributes(see page 140).When you change a ProtoField attribute, the change appears in all the cells inthe column. The following statement causes all of the values in the custnamecolumn (a column of entry fields in the table field custtable) to appear inboldface:entryfield(field(custtable[*].custname).protofield)isbold = TRUE;You can hide a table field column by setting the bias of its protofield toFB_INVISIBLE:entryfield(field(tf[*].name).protofield).CurBias = FB_INVISIBLE;Individual CellsYou can access some of the visual characteristics of individual cells of anunnested table field by using the CellAttribute object. This object has a varietyof attributes that control several of the visual characteristics of a cell. Notethat because the size of a cell is always identical to the size of all cells in thesame column, you cannot change any attributes that would affect the size of aCellAttribute attribute.The syntax for changing individual cell attributes is:field(tablefield[n].column).attribute = valuetablefield[n].column.attributeIdentifies a specific cell in row n of the array for the table field, andattribute is an attribute of the CellAttribute objectWorking with Arrays, Table Fields, and Collections 233

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!