SetByName
Sets the value for the corresponding column for the DataRow. If the value for the name exists, the old value is replaced.
Syntax
Sub setByName(columnName As String, value As String)
Parameters
- The name with which the specified value is to be associated
- Value to be associated with the specified name
Results
None.
Exceptions
- Blank column name
- Duplicate column name
Example
Dim newRow As G1CLIENTLib.DataRow
Set newRow= dataTable.netRow
newRow.setByName "AddressLine1", "100 Congress"
newRow.setByName "City", "Austin"
newRow.setByName "State", "Texas"
dataTable.addRow newRow