Microsoft KB Archive/58122

= 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, &quot;Differences from BasicA,&quot; 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 &quot;Microsoft QuickBasic 4.0: Basic Language Reference&quot; manual for QuickBasic Versions 4.00 and 4.00b for MS-DOS
 * 2) Page 94 of the &quot;Microsoft Basic Compiler 6.0: Basic Language Reference&quot; manual for Versions 6.00 and 6.00b for MS OS/2 and MS-DOS
 * 3) Page 38 of the &quot;Microsoft Basic 7.0: Language Reference&quot; 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 &quot;Differences from BasicA&quot; 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

-

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

© Microsoft Corporation. All rights reserved.