Set

Sets the value for the corresponding column for the DataRow. If the value for the name exists, the old value is replaced.

Syntax

ASCII Version
void set(int index, const char* value) 
Unicode Version
void set(int index, const UnicodeString value) 

Parameters

  • Column index with which the specified value is to be associated
  • Value to be associated with the specified name

Exceptions

  • The column index is invalid.

Example

ASCII Version
SmartPointer<DataRow> newRow = dataTable->newRow(); 
newRow->set( 0 , "10535 Boyer"); 
newRow->set( 1 , "Austin"); 
newRow->set( 2 , "Texas");
Unicode Version

Same as ASCII or:

SmartPointer<DataRow> newRow = dataTable->newRow(); 
UnicodeString address="10535 Boyer"; // Or input unicode string 
newRow->set( 0 , address);