Article View: alt.pl.comp.lang.csharp
Article #623Re: Jak sprawdziæ czy..
From: Jacek Wo³oszka
Date: Tue, 23 Mar 2004 13:34
Date: Tue, 23 Mar 2004 13:34
29 lines
1660 bytes
1660 bytes
"rozrabiaka" <br...@maila.pl> wrote in message
news:c3p6r8$h8f$1@news.onet.pl...
> U�ytkownik Jacek Wo�oszka napisa�:
>
> > "rozrabiaka" <br...@maila.pl> wrote in message
> > tzn czy jest niezainicjowany czy nie ma w nim zadnych danych?
> >
>
> Tak, o to chodzi..
> pozdrawiam, grzes.
DataSet ds;
ds=new DataSet();
if (ds==null)
{
MessageBox.Show("DS jest niezaincjowany");
return;
}
if (ds.Tables["tblX"] ==null)
{
MessageBox.Show("Brak tabeli");
return;
}
if (ds.Tables["tblX"].Rows.Count<=0)
{
MessageBox.Show("Brak rekordow");
}
Technical Details
Message-ID:
<c3pehq$k5n$1@nemesis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!teleglobe.net!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<c3p4rj$943$1@news.onet.pl> <c3p6c5$6qe$1@atlantis.news.tpi.pl> <c3p6r8$h8f$1@news.onet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!teleglobe.net!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Jacek Wo³oszka <jacekw@grochowski.com.pl.wytnij_to> Newsgroups: alt.pl.comp.lang.csharp Subject: Re: Jak sprawdziæ czy.. Date: Tue, 23 Mar 2004 14:34:58 +0100 Organization: tp.internet - http://www.tpi.pl/ Lines: 31 Message-ID: <c3pehq$k5n$1@nemesis.news.tpi.pl> References: <c3p4rj$943$1@news.onet.pl> <c3p6c5$6qe$1@atlantis.news.tpi.pl> <c3p6r8$h8f$1@news.onet.pl> NNTP-Posting-Host: qg170.internetdsl.tpnet.pl X-Trace: nemesis.news.tpi.pl 1080049023 20663 80.55.32.170 (23 Mar 2004 13:37:03 GMT) X-Complaints-To: use...@tpi.pl NNTP-Posting-Date: Tue, 23 Mar 2004 13:37:03 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit