Microsoft KB Archive/76516

= &quot;Expected: GOSUB&quot; Error with Basic 7.0/7.1 ON KEY Trap Example =

Article ID: 76516

Article Last Modified on 10/20/2003

-

APPLIES TO


 * Microsoft BASIC Professional Development System 7.1
 * Microsoft BASIC Professional Development System 7.0

-



This article was previously published under Q76516



SUMMARY
The following corrections apply to pages 312 and 313 of the &quot;Microsoft Basic 7.0: Programmer's Guide,&quot; specifically to the code examples illustrating the use of event traps. These incorrect code examples give an &quot;Expected: GOSUB&quot; error at compile time.

To correct the examples, change the four occurrences of  ON KEY (x) GOTO... to ON KEY (x) GOSUB... This information applies to Microsoft Basic Professional Development System (PDS) versions 7.0 and 7.1 for MS-DOS and MS OS/2.



MORE INFORMATION
The correct syntax for ON event statements is explained beginning on page 225 in &quot;Microsoft Basic 7.0: Language Reference&quot; for versions 7.0 and 7.1.

Additional query words: BasicCom 7.00 7.10

Keywords: KB76516

-

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

© Microsoft Corporation. All rights reserved.