Sets the specified row as the current (active) row in the design-time or run-time data table.
- You can set a row only if it contains at least one value.
- If you call another action (local or external) after performing this method, then when you return to the current action after the called action is complete, the current row in the action sheet is reset to the row corresponding to the current iteration (regardless of the value previously set in the DataTable.SetCurrentRow step.)
Indicates the number of the row to set as the active row. The first row is numbered 1.
The following example uses the SetCurrentRow method to change the active row to the second row in the global design-time or run-time data table.
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