Microsoft KB Archive/36806

= Softkey String for KEY 10 Has 5-Character Maximum Display =

Article ID: 36806

Article Last Modified on 11/21/2006



This article was previously published under Q36806



SUMMARY
The following manuals incorrectly specify that the first six characters of the softkey string expression will be shown when the KEY ON statement is invoked. This is true, except for KEY 10. For KEY 10, only the first 5 characters are shown:


 * 1) Page 233 of &quot;Microsoft QuickBasic 4.0: Basic Language Reference&quot; for Versions 4.00 and 4.00b
 * 2) Page 233 of &quot;Microsoft Basic Compiler 6.0: Basic Language Reference&quot; for Versions 6.00 and 6.00b for MS-DOS and MS OS/2
 * 3) &quot;Microsoft QuickBasic 4.5: Basic Language Reference&quot; for Version 4.50
 * 4) &quot;Microsoft Basic 7.0: Basic Language Reference&quot; for Basic PDS Version 7.00

This is a design limitation. The display of KEY 10 uses 2 character spaces to display the number &quot;10&quot;. This second digit uses the first available space of the string expression and leaves only 5 character spaces for that string expression.



MORE INFORMATION
The following is a code example: KEY 9, &quot;ABCDEF&quot; KEY 10, &quot;abcdef&quot; KEY ON  10 goto 10   ' Press CTRL+BREAK to quit. The following function key labels display on the bottom of the screen:   1      2      3. . .  8      9ABCDEF10abcde

Additional query words: QuickBas BasicCom

Keywords: KB36806

-

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

© Microsoft Corporation. All rights reserved.