Professional Documents
Culture Documents
Function InsertRow
Function InsertRow
Function: InsertRow
Function Prototype
Note
Parameter Description
Return Value
Error Handling
Example
Result
This section describes the InsertRow function. This function enables you to insert a row in a
specified table according to the row number.
Function Prototype
InsertRow(sheetName, tableNo, rowNo, dataList)
Note
None
Parameter Description
Parameter Description
Return Value
https://10.98.117.5:31943/hedex/hedex.do?lib=OMC&id=omc.Scriptapp.mainpage&topicid=p_insertrow_a&locale=en-us 1/2
3/25/23, 4:36 PM Function: InsertRow
The return value is an integer. If this function is successfully called, 1 is returned. Otherwise, 0 is
returned.
Error Handling
None
Example
sheetName = "sheet1"
tableNo = 0
rowNo = -1
datalist = ["data0", "data1", "data2", "data3"]
NewReport()
page1 = AddSheet("sheet1")
table1 = AddTable(page1, 6, 4, "table1")
SaveReportAs("result.xls")
Result
The following figure shows the contents of result.xls.
https://10.98.117.5:31943/hedex/hedex.do?lib=OMC&id=omc.Scriptapp.mainpage&topicid=p_insertrow_a&locale=en-us 2/2