Microsoft KB Archive/35660

= DO LOOP and EXIT WHILE Not Supported in Macintosh QuickBASIC =

Article ID: 35660

Article Last Modified on 11/21/2006



This article was previously published under Q35660



SUMMARY
This article describes two corrections to the &quot;Microsoft QuickBASIC for Apple Macintosh: BASIC Language Reference&quot; manual, Pages 154-155.

  The example for the IF ... THEN ... ELSE statement on Page 154 incorrectly contains a DO ... LOOP, which is not supported in QuickBASIC for the Macintosh (or in previous versions of BASIC for the Macintosh). EXIT DO also is not supported. The example program gives a &quot;Syntax Error&quot; for the unsupported statements.

You can substitute a WHILE ... WEND statement for the DO ... LOOP statement, as follows: X=-1 WHILE X<=0 OR X >= 10000 INPUT &quot;Enter a number greater than 0 and less than 10,000:&quot;,X IF X<=0 OR X >= 10000 THEN PRINT &quot;Out of range.&quot; WEND  The example on Page 155 mistakenly uses an EXIT WHILE statement, which is not supported. This program gives a &quot;Syntax Error&quot; on the EXIT WHILE statement.

Additional query words: MQuickB

Keywords: KB35660

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.