Promotic
WikipediaLinkedInYoutubeTwitterFacebook

DeleteRow - method of the PmfTable object

Description:
Delete one or multiple rows.
Syntax:
Empty DeleteRow(Long nRowArea, Long iRow, [Long nCount])
Parameters:
nRowArea(Long) Detecting the area of the table (see Areas in the table).

At this moment only the value 1 can be entered = table data area (Body). It means deleting from the header area (Head) and footer (Foot) is not possible (it can only be set during the initialization phase by the InitRows method).

iRow(Long) Row index (zero-based index).

-1 = Delete from the end.

nCount[optional] (Long) Number of rows (default: 1).

-1 = Delete all rows from selected row to the end.

Note:
This method is also functional in Web panels.
See also:
Example1:
JavaScriptSelect and copy to clipboard

oTable.DeleteRow(1, 3, -1);

History:
Pm9.00.10: Fixed bug: The method did not work in the Web panel if iRow parameter was set to -1 (i.e. Delete from the end).
Pm9.00.04: Created
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