GetColumnIndexFromRow
Gets the corresponding column index.
Syntax
int getColumnIndexFromRow(DataRow* dataRow, const char* name)
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
int nIndex
nIndex = getColumnIndexFromRow ("AddressLine1");
int nIndex
UChar columnName[64];
char* columnNameStr= "AddressLine1"
u_charsToUChars(columnNameStr, columnName, strlen(columnNameStr));
columnName [strlen(columnNameStr)]=0;
nIndex = getColumnIndexFromRow (columnName);