I hate to say this, but please double-check your results. I've written that
construct thousands of times and never yielded anything but what "should" be
there. Drop a System.Console.WriteLine() after the last "else" and print out
strResult. If you still get the bizarre results, drop it into a simple
one-page sample app and post it.

Ted Neward
{.NET || Java} Course Author & Instructor, DevelopMentor
(http://www.develop.com)
http://www.javageeks.com/tneward
http://www.clrgeeks.com/tneward

----- Original Message -----
From: "Wareham, Matt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 2:33 PM
Subject: Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???


> This was a direct paste from a test project.  I've tried it on 2 different
> workstations with the same results.  I even have the latest SP's
installed.
> My small brain is quite confused!
>
> -Matt
>
>
> -----Original Message-----
> From: Brad Wilson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 16, 2002 2:31 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???
>
> Wareham, Matt wrote:
>
> > meaning can it even be done??
>
> Yes, it can be done, and your code looks right. Was it a paste or a
re-type?
>
> Brad
>
> --
> Read my web log at http://www.quality.nu/dotnetguy/
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
> This e-mail message, including any attachments, is for the sole use of the
> intended recipient(s) and may contain confidential or privileged
> information.  Any unauthorized review; use, disclosure or distribution is
> prohibited.  If you are not the intended recipient, please contact the
> sender by reply e-mail and destroy the message.
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to