Why can't I "Exit While"?
Posted on 2003-03-31
Fairly self-explanitory and I'm sure an easy question. Example:
while rsTest.EOF = False
if rsTest!id = 1 then exit while
According to Microsoft, from the MSDN VB6 reference for the "Exit" keyword:
Immediately exits the While loop in which it appears. Execution continues with the statement following the End While statement...."
So why, when I use "Exit While" does VB say "Syntax Error"? If I can't use it (why would MS say I can?) what alternative can I use? (I hate goto's but will use them if I have to)