Model.tableinsertrow#
- Model.tableinsertrow(name, string_array, row_index)#
Inserts a row of data into a table.
- Parameters:
name (hwString) – The name of the table to update.
string_array (hwStringList) – The string array that contains the row data to insert. The length of the list should equal to the number of columns in the table.
row_index (int) – The index of the row to insert. Tables are indexed starting from 1 (1 to n rows).
Example#
Insert a row of data at index 3 to “ table1 “ which has 7 columns with data types ( integer , string , double , elements , integer , double , properties )#import hm import hm.entities as ent model = hm.Model() model.tableinsertrow( name="table1", string_array=["1", "abc", "4.567", "500", "10", "3.14159", "100"], row_index=3, )