Microsoft KB Archive/12243

= No Error Listing File in QB 2.00; Error-Only File in 2.01/3.00 =

Article ID: 12243

Article Last Modified on 11/21/2006



This article was previously published under Q12243



SUMMARY
QuickBasic Version 2.00 cannot list compiler errors to a file when compiling from the DOS command line (outside the QB.EXE editor) (see "Separate Compilation Method" in Appendix D of the "Microsoft QuickBasic Compiler" Version 2.0 and 3.0 manual). This means that all debugging must be done in the QB.EXE Version 2.00 editor.

In contrast, earlier versions of QuickBasic (1.00, 1.01, and 1.02) give a listing (.LST) file that includes all source lines and flags those lines that have errors.

Versions 2.01 and 3.00 have enhanced the Separate Compilation Method so that you can redirect compiler error messages to a file or device. If you compile from a DOS batch (.BAT) file, this feature allows you to automatically report the errors to an output file. For example:   Command Line               Action --

QB TEST.BAS;              Compile TEST.BAS and display any errors encountered on the screen.

QB TEST.BAS; > TEST.LST   Compile TEST.BAS and redirect any error messages generated to the file TEST.LST.

QB TEST.BAS; > PRN        Redirects output to the DOS printer device. Only the lines in error and their associated error messages are sent to the screen or output file in 2.01 and 3.00. Source lines that don't have errors aren't listed.



MORE INFORMATION
As there is no full-source-listing (.LST) output feature in QuickBasic Versions 2.00, 2.01, and 3.00, there is also no compiler /A option to output the assembler translation of the Basic code. The compiler /A option is supported only in QuickBasic Versions 1.00, 1.02, 1.02, 4.00, 4.00b, and 4.50.

Additional query words: QuickBas

Keywords: KB12243

-

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

© Microsoft Corporation. All rights reserved.