Connecting Tech Pros Worldwide Help | Site Map

Rows.Find () Method + Windows 98??

thomaz
Guest
 
Posts: n/a
#1: Nov 16 '05
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....

Jon Skeet [C# MVP]
Guest
 
Posts: n/a
#2: Nov 16 '05

re: Rows.Find () Method + Windows 98??


thomaz <suppa@nce.ufrj.br> wrote:[color=blue]
> My code below doesnīt work well in windows 98 only.
> I use them in windows XP and itīs OK.[/color]

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Closed Thread