"7.0: Programmer's Guide" Error Handling Example Correction (58640)



The information in this article applies to:

  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1
  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 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.

Modification Type:MajorLast Reviewed:10/20/2003
Keywords:KB58640