Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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 rows/columns) as the first column/row after the fixed columns/rows.

Let's have the PmgWTable object in the oTable variable placed in the graphics editor.

Example:
JavaScriptVBScriptSelect and copy to clipboard

var i, nRows;
var oTable = pMe;
if (nRows > 20)
{
for (i = 21; i < nRows; i++)
oTable.RemoveRow(-1);
}
else
{
if (nRows < 20)
{
for (i = nRows; i < 19; i++)
oTable.InsertRow(-1);
}
}
oTable.RowFirstVisible = oTable.FixedRows;
oTable.ColFirstVisible = oTable.FixedCols;
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