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:
- Page 233 of "Microsoft QuickBasic 4.0: Basic Language Reference" for Versions 4.00 and 4.00b
- Page 233 of "Microsoft Basic Compiler 6.0: Basic Language Reference" for Versions 6.00 and 6.00b for MS-DOS and MS OS/2
- "Microsoft QuickBasic 4.5: Basic Language Reference" for Version 4.50
- "Microsoft Basic 7.0: Basic Language Reference" for Basic PDS Version 7.00
This is a design limitation. The display of KEY 10 uses 2 character spaces to display the number "10". 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, "ABCDEF" KEY 10, "abcdef" 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