Microsoft KB Archive/32418

= No LIST, LLIST, MERGE, NEW, TRON, TROFF in BASIC Compiler =

Article ID: 32418

Article Last Modified on 11/21/2006



This article was previously published under Q32418



SUMMARY
The interpreter in QuickBASIC (and in the earlier BASIC Interpreter Versions 1.x, 2.x, and 3.00) for Macintosh supports statements that control editing, debugging, and other features that are specific to the interpreter. Such statements have no meaning in compiled programs. They will produce compile-time errors if encountered in the source code. These statements include CHAIN MERGE, LIST, LLIST, LOAD, SAVE, MERGE, NEW, TRON, and TROFF.



MORE INFORMATION
The following interpreter statements are not allowed in compiled source code; the compiler concepts that replace them are provided:


 * 1) CHAIN MERGE: This command has no equivalent in the compiler. The compiler supports only a simple CHAIN with no MERGE.
 * 2) LIST: You can view all or part of a program with a text editor, such as the interpreter environment or the Apple Edit program.
 * 3) LLIST: Compiled programs do not support the LLIST statement in source code. Normally, you would never need LLIST in source code, since you can invoke LLIST in the interpreter's Command window to print out the source listing. Note that the interpreter's LLIST command can only send output to a directly-connected ImageWriter I or II. LLIST cannot output to an Apple ImageWriter LQ or LaserWriter, and cannot output to a printer on the AppleTalk Network. To output to a greater variety of printers, you can print a source file by choosing the Print command from the interpreter's File menu; this will send output to any selected and supported Apple ImageWriter (I, II, or LQ) or LaserWriter.
 * 4) LOAD/SAVE: These commands have no equivalent in the compiler.
 * 5) MERGE: You can merge two files in the interpreter and most text editors by copying one file to the clipboard, loading the next file, and then pasting. The QuickBASIC Interpreter only opens one file at once.

The Edit program on the QuickBASIC Version 1.00 disk lets you open more than one file at once, and you can cut, copy, and paste between windows.
 * 1) NEW: This command has no close equivalent in the compiler. A compiled application is automatically cleared from memory after it finishes executing.
 * 2) TRON/TROFF: These debugging commands have no equivalent in the compiler. Programs can be debugged in the interpreter, then compiled.

Note that QuickBASIC for Macintosh integrates the compiler into the Run menu of the interpreter environment. The earlier BASIC Interpreter (Versions 1.00, 1.01, 2.00, 2.10, and 3.00) and earlier BASIC Compiler (Version 1.00) are separate products.

Additional query words: BasicCom MQuickB

Keywords: KB32418

-

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

© Microsoft Corporation. All rights reserved.