Change the number of table rows

The example changes the number of table 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 PmiAx graphic item in the oAx variable placed in the image editor (this graphic item is set to the PmTable ActiveX object).

JavaScriptVBScriptSelect and copy to clipboard

var i, nRows;
var oAxTable = pMe.Acx;
if (nRows > 20)
  for (i = 21; i < nRows; i++)
    oAxTable.RemoveRow -1;
  if (nRows < 20)
    for (i = nRows; i < 19; i++)
      oAxTable.InsertRow -1;
oAxTable.RowFirstVisible = oAxTable.FixedRows;
oAxTable.ColFirstVisible = oAxTable.FixedCols;
PROMOTIC 8.3.23 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