P
Prince
I've filled a DataSet,ds, with a table, State. The
schema is similar to the following:
State
============
ID
CountryID
StateAbrev
StateName
I've loaded the State table into the dataset, ds. The
StateAbrev has all the state abreviations. How can I get
the record number of a state abreviation? Example. Lets
say the following 2 records are inside the table.
State
=======
1 1000 NY New York
2 1000 RI Rhode Island
Given the string, str = "RI", how can I get the record
number within the state table.
int index = GetRecordNumber(); //should return the
number 1
thanks,
Prince
schema is similar to the following:
State
============
ID
CountryID
StateAbrev
StateName
I've loaded the State table into the dataset, ds. The
StateAbrev has all the state abreviations. How can I get
the record number of a state abreviation? Example. Lets
say the following 2 records are inside the table.
State
=======
1 1000 NY New York
2 1000 RI Rhode Island
Given the string, str = "RI", how can I get the record
number within the state table.
int index = GetRecordNumber(); //should return the
number 1
thanks,
Prince