Re: If Not myDataSet Is Nothing...
- From: "David" <David@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 8 Sep 2005 11:30:03 -0700
Thanks for your reply.
The check for null didn't work, as the dataset has been declared at the time
of the check and null is returning false. What I finally did was put in a
count of tables within the dataset. If the count is 0, it hasn't yet been
populated.
David
"Bela Istok" wrote:
> If (myDataSet != null)
> {
>
> }
> "David" <David@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:AAE63FA1-79E0-436E-BDDD-C3F2A2DC6B89@xxxxxxxxxxxxxxxx
> > I'm rewriting a vb client app to C# and need to convert:
> >
> > "If Not myDataSet Is Nothing Then"
> >
> > I can't seem to get the syntax right for this one...
> > What would such a thing look like in C#?
> >
> >
>
>
>
.
- References:
- If Not myDataSet Is Nothing...
- From: David
- Re: If Not myDataSet Is Nothing...
- From: Bela Istok
- If Not myDataSet Is Nothing...
- Prev by Date: C# unzipping kind of
- Next by Date: Re: Passing NULL to a DLLImport function.
- Previous by thread: Re: If Not myDataSet Is Nothing...
- Next by thread: RE: If Not myDataSet Is Nothing...
- Index(es):
Relevant Pages
|