setCommonFormat

Syntax

<Path>.setCommonFormat(Column:any[, Column:any, ...], CommonFormat:boolean)

The method setCommonFormat assigns the same format to all columns of the DataTable designated by <Path> within the designated range.

Parameters

  • The parameters Column of data type any designate the columns.

  • The parameter CommonFormat of data type boolean activates (true) or deactivates the Common format (false).

Note:

If you would like define the common format of a column of data type table in a method, you have to create a sub-table and then format this table with the method setDataType:

Example

-- activate common format for the columns 3 to 5, for column 7 and for the
-- column with the user-defined column index “mycolumn”.
MyDataTable.setCommonFormat({3,*}..{5,*},7,"mycolumn", true)
MyDataTable.setDataType(3,"Table")
MyDataTable.setCommonFormat(3,true)
MyDataTable.createNestedList(3,1)
MyDataTable[3,1].setDataType(2,"Boolean")
MyDataTable.createNestedList(3,7)
MyDataTable[3,7][2,77] := true

Related Topics

CommonFormatColumnIndex

Tab Contents