C#leaner <am**********@yahoo.comwrote:
I am getting squggly blue on (i==1) as well as on d.
I don't know why you're getting one on i==1, but using d at the end of
the set of "ifs" is wrong, because it hasn't yet been definitely
assigned a value. I mean, *we* know that one of the "ifs" will have
been true, but the compiler doesn't.
Also, you need a break after the first switch case - you can't fall
through from one case label to another after you've put some code in.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too