Rows.Find () Method + Windows 98??
Hi;
My code below doesn´t work well in windows 98 only.
I use them in windows XP and it´s OK.
thisBuilder = new OleDbCommandBuilder (thisAdapter);
thisDataSet = new DataSet ();
thisAdapter.Fill (thisDataSet, "sigla");
DataColumn[] keys = new DataColumn [1];
keys[0] = thisDataSet.Tables["sigla"].Columns ["sigla"];
thisDataSet.Tables ["sigla"].PrimaryKey = keys;
DataRow findRow = thisDataSet.Tables ["sigla"].Rows.Find (siglaSgc);
if (findRow == null)
{
//retornando falso indicando que esse registro é novo
return false;
}
In windows 98 some times the method works well and some times doesn´t work appropriately.
The is a problem in a Rows.Find () method and Windows 98????
Anybody can help???
Thanks....
|