Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Cols - property of the PmgWTable object

Description:
The number of table columns (counted including the fixed part).
Syntax:
Long Cols
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.

See also:
- PmgWTable.Rows (property)
- PmgWTable.FixedCols (property)
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTable = pMe.Items("/Table");
var nCols = oTable.Cols;  //reading

oTable.Cols = 8;  //writing
PROMOTIC 9.0.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice