Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 14th, 2005, 04:01 PM
Authorized User
Join Date: Jun 2003
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Rows.Find () Method + Windows 98??


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???
Old March 15th, 2005, 06:55 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma

Does it give an error?
Try putting the code in try catch in that case and see what the problem is.

Talking about two different operating systems, inherantly means talking about two different sets of settings which can be the source of this behaviour.

Ankur Verma

Similar Threads
Thread Thread Starter Forum Replies Last Post
.net on Windows 98 sh.rajkumar C# 2005 1 October 23rd, 2006 03:53 AM
SelectedIndex () in Windows 98!! problem thomaz C# 0 March 21st, 2005 02:29 PM
Font problem in Windows 98 soccers_guy10 VS.NET 2002/2003 0 January 10th, 2005 03:44 AM
Windows 98 OCX control issues vs Windows XP benoyraj VB How-To 0 May 5th, 2004 08:10 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.