SetByIndex
Sets the value for the corresponding column for the DataRow. If the value for the name exists, the old value is replaced.
Syntax
Sub setByIndex(index As Integer, value As String)
Parameters
- The column index with which the specified value is to be associated
- Value to be associated with the specified name
Results
None.
Exceptions
- The column index is invalid
Example
Dim newRow As G1CLIENTLib.DataRow
Set newRow= dataTable.netRow
newRow.setByIndex 0, "100 Congress"
newRow.setByIndex 1, "Austin"
newRow.setByIndex 2, "Texas"
dataTable.addRow newRow