Microsoft KB Archive/58640

From BetaArchive Wiki
Knowledge Base


"7.0: Programmer's Guide" Error Handling Example Correction

Article ID: 58640

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 Q58640

SUMMARY

The following are two corrections to the error handling example program on Page 291 of the "Microsoft Basic 7.0: Programmer's Guide" (for 7.00 and 7.10):

  1. In Module #1, the line "ON ERROR GOTO Handler" should be removed because there is no line label "Handler" in the first module.
  2. In Module #2, the line "DEFINT A-Z" should be added before the line "Handler:". Since the default type for variables is SINGLE, variables A and B would be incorrectly typed as SINGLE instead of as INTEGER if the DEFINT A-Z line is not inserted.

This information applies to Microsoft Basic Professional Development System (PDS) versions 7.00 and 7.10 for MS-DOS and MS OS/2.


Additional query words: BasicCom SR# S900207-56

Keywords: KB58640