I understand, Steve. :)
"Steve C. Orr [MVP, MCSD]" <Steve@Orr.net> wrote in message
news:ubf5LfuDFHA.1392@tk2msftngp13.phx.gbl...
> Don't worry Kevin, we weren't ganging up on you!
> We agree with you. We just didn't want folks to go thinking it was a good
> idea to go with that kind of design. But you probably already knew that.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
>
http://SteveOrr.net >
>
> "Kevin Spencer" <kevin@DIESPAMMERSDIEtakempis.com> wrote in message
> news:eRuTkYqDFHA.560@TK2MSFTNGP15.phx.gbl...
>> Well, heck guys, I only said that you could. Just covering all the bases.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> .Net Developer
>> Neither a follower nor a lender be.
>>
>> "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
>> wrote in message news:uMqGFQjDFHA.1264@TK2MSFTNGP12.phx.gbl...
>>> Kevin:
>>> My personal opinion is that this leads to
>>> hard-to-read-gonna-cause-problems-down-the-road code. Far better to
>>> nest
>>> the if statement in those rare instances. But ur right..it could be
>>> used
>>> for that.
>>>
>>> Karl
>>> --
>>> MY ASP.Net tutorials
>>>
http://www.openmymind.net/ >>>
>>>
>>> "Kevin Spencer" <kevin@DIESPAMMERSDIEtakempis.com> wrote in message
>>> news:uHv5aBeDFHA.936@TK2MSFTNGP12.phx.gbl...
>>>> Well, there IS one other exception to that rule, Karl. If you have a
>>>> specific reason for needing to evaluate BOTH experssions (such as
>>>> function
>>>> calls that return booleans, but must be made), you should also use the
>>>> Or
>>>> operator.
>>>>
>>>> --
>>>> HTH,
>>>>
>>>> Kevin Spencer
>>>> Microsoft MVP
>>>> .Net Developer
>>>> Neither a follower nor a lender be.
>>>>
>>>> "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
>>>> wrote in message news:%23qe2GjWDFHA.2632@TK2MSFTNGP12.phx.gbl...
>>>> > Actually, it's an OrElse as it's short-circuit
>>>> >
>>>> > You should always be using OrElse when doing logical comparisons
>>>> > instead
>>>> > of
>>>> > Or...or should only be used as a bit operator..
>>>> >
>>>> > Karl
>>>> >
>>>> > --
>>>> > MY ASP.Net tutorials
>>>> >
http://www.openmymind.net/ >>>> >
>>>> >
>>>> > "Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in
>>>> > message
>>>> > news:OeNpjdWDFHA.3256@tk2msftngp13.phx.gbl...
>>>> >> Looks like a logical OR to me...
>>>> >>
>>>> >> Dim Result As Boolean = (aDataset Is Nothing) Or
>>>> >> (aDataset.Tables.Count
>>> =
>>>> > 0)
>>>> >>
>>>> >> Sets Result to true if aDataset is Nothing or if there are zero
>>>> >> tables
>>> in
>>>> >> aDataset
>>>> >> Sets Result to false if aDataset has been initialized or if it has
>>>> >> at
>>>> > least
>>>> >> one table.
>>>> >>
>>>> >> "hansiman" <hansi@hotmail.com> wrote in message
>>>> >> news:7krf015mr0hb4o615sekfp0jetnpfo7nup@4ax.com...
>>>> >> > on
http://www.bsdg.org/2005/01/empty-dataset.shtml >>>> >> > I came across this C# code:
>>>> >> >
>>>> >> > bool Result = ( aDataset == null ) || ( aDataset.Tables.Count ==
>>>> >> > 0 );
>>>> >> >
>>>> >> > I think I know what it is supposed to do!
>>>> >> > How is this coded in VB
>>>> >> >
>>>> >>
>>>> >
>>>> >
>>>>
>>>>
>>>
>>>
>>
>>
>
>