GetColumnIndexFromRow

Gets the corresponding column index.

Syntax

ASCII Version
int getColumnIndexFromRow(DataRow* dataRow, const char* name) 
Unicode Version
int getColumnIndexFromRow(DataRow* dataRow, const UChar* name) 

Parameter

  • Datarow - the DataRow to which this function applies
  • Column name

Results

Returns the corresponding column index.

Example

ASCII Version
int nIndex
nIndex = getColumnIndexFromRow ("AddressLine1");
Unicode Version
int nIndex 
UChar columnName[64]; 
char* columnNameStr= "AddressLine1" 
u_charsToUChars(columnNameStr,	columnName, strlen(columnNameStr)); 
columnName [strlen(columnNameStr)]=0; 
nIndex = getColumnIndexFromRow (columnName);