Rows.Find () Method + Windows 98??

T

thomaz

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.
There is a problem in a Rows.Find () method and Windows
98????
Anybody can help???
Thanks....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top