Promotic

InsertRow - method of the PmgWTable object

Description:
The method serves for inserting new row into the table on the specified position. It is not possible to insert into fixed rows. Rows on and after this position are moved.
Syntax:
Long InsertRow(Long Row, [Long Count])
Parameters:
Row(Long) If the value is >=0, then it is a row index (zero-based index).
Value -2 means that the row is inserted at the end.
Count[optional] (Long) The number of new rows. The default value is 1.
Return values:
Returns the number of all (also fixed) rows (after requested rows are added).
Note:
This method is also functional in Web panels.
See also:
- PmgWTable.Rows (property)
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTable = pMe.Items("/Table");
oTable.InsertRow(-2);
PROMOTIC 9.0.17 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