Insert line at the end
Command Description
Insert a new row below the last row of the data table and fill the specified data (array) into the new row
Command Prototype
Datatable.InsertRowAtEnd(dtTable, objDefaultValue)
Command parameter
parameter | mandatory | type | default value | Instructions |
---|---|---|---|---|
dtTable | True | expression | objDatatable | The data table object with rows inserted at the end, usually the return value of the "Build Data Table" command or the "Build Data Table from Excel Table" command |
objDefaultValue | True | expression | [] | Support filling array format data into inserted new rows, and the length of the array must be equal to the number of columns; It also supports filling with the same single value; If you do not want to fill in the content, you can keep it as the default value (empty array), and finally insert a new empty text line |
Return result
Run instance
/*********************************Insert Row at End***************************************
Command Prototype:
Datatable.InsertRowAtEnd(dtTable, objDefaultValue)
Input Parameters:
dtTable -- Data table object. Note: The data table object that will have a row inserted at the end, typically the return value of the "Build Data Table" command or the "Build Data Table from Excel" command.
objDefaultValue -- Row data. Note: Supports filling the new row with array-formatted data (the array length must equal the number of columns), or filling with the same single value. If no content is desired, it can remain as the default value (empty array), resulting in an empty text row.
Output Parameters:
None
Notes:
None
********************************************************************************/
Datatable.InsertRowAtEnd(objDatatable, [])