Microsoft KB Archive/63004

= SELECT CASE Example Correction for QuickBasic 4.5 Manual =

Article ID: 63004

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBasic 4.5 for MS-DOS, when used with:
 * Microsoft MS-DOS 6.22 Standard Edition

-



This article was previously published under Q63004



SUMMARY
On Page 121 of the &quot;Microsoft QuickBasic 4.5: Learning to Use&quot; manual, there is an error in the sample code for the SELECT CASE statement.

This information applies to Microsoft QuickBasic version 4.50 for MS-DOS.



MORE INFORMATION
The following code fragment from Page 121 is incorrect: IF LEN(Choice$) = 1 THEN

' Handle ASCII keys SELECT CASE ASC(Choice$) CASE ESC PRINT &quot;Escape key&quot; END CASE IS 32, 127 PRINT &quot;Control code&quot; .                   .                    . The statement &quot;CASE IS 32, 127&quot; should be changed to the following: CASE IS < 32, 127 The &quot;<&quot; (less than) symbol is missing from the example.

A correct version of the example is in the QB Advisor online Help system for QuickBasic version 4.50. You can find this code in &quot;Example 2&quot; from the example hypertext link when getting help on SELECT CASE.

Additional query words: QuickBas

Keywords: KB63004

-

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

© Microsoft Corporation. All rights reserved.