in reply to Can I match a range from an array?

I have no idea what your code does, because there's no indentation, and I don't care to trace the flow of unindented code. I'm guessing that whatever your problem is can be traced back to you and the compiler not agreeing on what the code does. Proper indentation of code is the single most important thing to take a look at when your code doesn't do what you expect it to do.

If you're going to do any amount of serious programming (i.e. stuff like this), you owe it to yourself to buy, read and memorize Code Complete by Steve McConnell. It's a career in paperback.

xoxo,
Andy
--
<megaphone> Throw down the gun and tiara and come out of the float! </megaphone>

  • Comment on On the importance of proper indentation