Q12243: No Error Listing File in QB 2.00; Error-Only File in 2.01/3.00
Article: Q12243
Product(s): See article
Version(s): 2.00 2.01 3.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | | mspl13_basic
Last Modified: 19-OCT-1989
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.
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.
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.