Cols - property of the PmgWTable object
Description:
The number of table columns (counted including the fixed part).
Note:
Property access
for read and write. The preset value of this property is defined in the "
Table columns" configurator of this object.
The property can also be set by the Dim method.
This property is also functional in Web panels.
Caution: The table structure changes on setting the number of columns, i.e. the content of all cells is cleared.
The set count must be higher than FixedCols.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oTable = pMe.Items("/Table");
var nCols = oTable.Cols; //reading
oTable.Cols = 8; //writing
Dim oTable, nCols
Set oTable = pMe.Items("/Table")
nCols = oTable.Cols 'reading
oTable.Cols = 8 'writing