KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q67378: OPEN "SCRN:" or "CONS:" Wrong Output in QBX.EXE When Step (F8)

Article: Q67378
Product(s): See article
Version(s): 7.00 7.10
Operating System(s): MS-DOS
Keyword(s): ENDUSER | SR# S901109-37 buglist7.00 buglist7.10 | mspl13_basic
Last Modified: 5-DEC-1990

When you single step (F8) through a program that redirects screen
output to either of the DOS standard devices "SCRN:" or "CONS:", the
output will incorrectly flash momentarily on the QBX.EXE programming
environment, instead of going to the output window.

This problem occurs in the editing environment (QBX.EXE) of Microsoft
BASIC Professional Development System (PDS) versions 7.00 and 7.10.
This problem does not occur in the Microsoft QuickBASIC environment
(QB.EXE) shipped with QuickBASIC version 4.00, 4.00b, and 4.50.
Microsoft is researching this problem and will post new information
here as it becomes available.

The following short program demonstrates the problem:

OPEN "SCRN:" FOR OUTPUT AS #1   ' "CONS:" also shows problem.
FOR i = 1 TO 10
        PRINT #1, i
NEXT i

Single step through this program in the QBX.EXE 7.00 or 7.10
environment by repeatedly pressing the F8 key. The output will
momentarily flash on the environment screen; no text will be displayed
on the output screen. Note that just running the program (F5) will
correctly print to the output screen.

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.