table delete remaining rows, table delete remaining rows if needed
This function deletes all remaining rows from the specified row till the end of the table.
The suffix ... if needed will suppress an exception if the rows to be deleted lie below the last table row.
In this case, no actions will happen.
Indirect parameter passing is disabled
2
No. | Type | Description |
---|---|---|
1. input |
string | Name of existing table |
2 input |
numeral | Row number Table rows begin with row 0 (header row). Negative indexing is supported, i.e. -1 = last table row. |
Table not found
table initialize ( table 1,
{ { Animal, leg count }, { Worm, 0}, { Bird, 2 }, { Dog, 4 }, { Fly, 6 }, { Tick, 8 } } );
table delete remaining rows( table 1, 3 );
table list( table 1 ); // Only Worm and Bird are left.
0 : Animal | leg count
1 : Worm | 0
2 : Bird | 2