Microsoft KB Archive/58122

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 17:57, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


CHAIN Line-Number Option Is in BasicA, Not in QuickBasic

Article ID: 58122

Article Last Modified on 11/21/2006

This article was previously published under Q58122

SUMMARY

The documentation for the CHAIN statement misleadingly refers to the line-number option. The line-number option is supported in the BasicA and GW-Basic Interpreters, but not in compiled Basics. This fact is documented in the same section, "Differences from BasicA," but not in the same paragraph, and thus might cause confusion. References to the line-number option apply only to modifying BasicA and GW-Basic code.

This information applies to the following manuals:

  1. Page 94 of the "Microsoft QuickBasic 4.0: Basic Language Reference" manual for QuickBasic Versions 4.00 and 4.00b for MS-DOS
  2. Page 94 of the "Microsoft Basic Compiler 6.0: Basic Language Reference" manual for Versions 6.00 and 6.00b for MS OS/2 and MS-DOS
  3. Page 38 of the "Microsoft Basic 7.0: Language Reference" manual for Microsoft Basic Professional Development System (PDS) Version 7.00 for MS-DOS and MS OS/2


MORE INFORMATION

The last two paragraphs of the "Differences from BasicA" section read as follows:

Basic does not support the ALL, MERGE, or DELETE, OPTIONS available in BasicA, nor does it allow the specification of a line number.

Without the line-number option, execution always starts at the beginning of the chained-to program. Thus, a chained-to program that chains back to a carelessly written chaining program can cause an endless loop.



Additional query words: QuickBas BasicCom

Keywords: KB58122