IF <expression> THEN NEXT / THEN WEND Not Supported (31787)
This article was previously published under Q31787
SUMMARY
You cannot conditionally execute NEXT and WEND statements using the
single-line IF...THEN...ELSE statement.
The following two syntax examples, which are supported by GW-Basic and
QuickBasic Version 2.01 and previous versions, are not supported by
QuickBasic Versions 3.00 and later:
IF <boolean expression> THEN NEXT
IF <boolean expression> THEN WEND
Using this illegal syntax will give the following error message at
compile time:
"NEXT without FOR" or "WEND without WHILE"
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB31787 |
|