Re: If Not myDataSet Is Nothing...



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#?
> >
> >
>
>
>
.



Relevant Pages

  • If Not myDataSet Is Nothing...
    ... I'm rewriting a vb client app to C# and need to convert: ... I can't seem to get the syntax right for this one... ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: If Not myDataSet Is Nothing...
    ... If (myDataSet!= null) ... > I'm rewriting a vb client app to C# and need to convert: ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VB6+ Article in VSM by Bill McCarthy
    ... a one-step process that innvolves just one lot of rewriting. ... > whole heap of compiler help to weed-out syntax or functionality that will ... > than step-wise, would be commercial suicide. ... Whet is really needed is something that radically cuts down the total amount ...
    (microsoft.public.vb.general.discussion)
  • Re: Compare currency to a double
    ... I can't use isnull because sometimes there are values that are ... >not equal and I need that value to update the spreadsheet. ... you may need some other number); or a syntax ... Prev by Date: ...
    (microsoft.public.access.formscoding)
  • Re: Arrays of zero length
    ... than syntax, there is no "funniness" about whether or not it is ... my first.last at org.domain| experience comes from bad judgment. ... Prev by Date: ...
    (comp.lang.fortran)