Model.tabledeleterow#
- Model.tabledeleterow(name, row_index)#
Deletes a row of data from a table.
- Parameters:
name (hwString) – The name of the table to update.
row_index (int) – The index of the row to delete. Tables are indexed starting from 1 (1 to n rows). If specified as 0, the last row in the table is deleted.
Examples#
Delete the last column from “ table1 “ , which has 11 rows#import hm import hm.entities as ent model = hm.Model() model.tabledeleterow(name="table1", row_index=0)
Delete the last column from “ table1 “ , which has 11 rows ( Alternatively )#import hm import hm.entities as ent model = hm.Model() model.tabledeleterow(name="table1", row_index=11)
Delete row 3 from “ table1 “#import hm import hm.entities as ent model = hm.Model() model.tabledeleterow(name="table1", row_index=3)