Microsoft KB Archive/58122
Article ID: 58122
Article Last Modified on 11/21/2006
This article was previously published under Q58122
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:
- Page 94 of the "Microsoft QuickBasic 4.0: Basic Language Reference" manual for QuickBasic Versions 4.00 and 4.00b for MS-DOS
- 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
- 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
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