I don't know how I can be having problems with this. The syntax of my loop seems to be correct but it might be something else in a different part of my code that is causing my problem. With the following code:
I have other instantiable classes, abstract class , an interface and methods in my code too. Maybe they are causing a problem that is being reflected in my while loop? I can't believe I'm having so much trouble with a while loop.
Thanks again , and I hope the solution is something that will make me feel like an idiot (at least it will be an easy fix then) -Scott
Yeah the while (true) would be easier I never thought of that. As I thought the syntax of my loop is good. Is there someway that a problem with one of my other classes , interfaces or methods that I wrote could be causing the problem with this while loop? Also I just tried to replace my while loop with a do while loop and I got the exact same compile error except instead of being at where the "while" was it is where the "do" is. The syntax of both of these loops is correct so there must be something else in my code that causing the program. I checked my brackets and I don't think that I have any stray brackets causing trouble so I really don't know what it is. thanks again, -Scott [ May 03, 2003: Message edited by: Scott Kamen ]