Open topic with navigation
|Unified Functional Testing Automation|
Returns the total number of rows in the longest column in the first sheet in the design-time or run-time data table (global sheet).
The following example uses the GetRowCount method to find the total number of rows in the longest column of the MySheet run-time data sheet and writes it to the report.
rowcount = DataTable.GetSheet("MySheet").GetRowCount
Reporter.ReportEvent 2, "There are " &rowcount, "rows in the data sheet."
The example below performs the equivalent of renaming a column (parameter) in the DataTable by copying the data from one column to a new column with a new name, and then deleting the old column.
'add a new column
'copy the cells from the old column into the new column
For i=1 to cnt
'delete the old column