Update cookies preferences
Promotic

Change the number of table rows

The example changes the number of rows to just 20 rows and displays the first non-fixed table column/row (with the index that equals the number of fixed columns/rows) as the first column/row after the fixed rows/columns.
Let's have the PmgWTable object in the oTable variable placed in the graphics editor.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTable = pMe;
var nRows, iRow;
if (nRows > 20)
{
for (iRow = 21; iRow < nRows; iRow++)
{
oTable.RemoveRow(-1);
}
}
else
{
if (nRows < 20)
{
for (iRow = nRows; iRow < 19; iRow++)
{
oTable.InsertRow(-1);
}
}
}
oTable.RowFirstVisible = oTable.FixedRows;
oTable.ColFirstVisible = oTable.FixedCols;
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.