Microsoft KB Archive/20591

= BUG: WINDOW OUTPUT Output Goes to Wrong Window in Interpreter =

Article ID: 20591

Article Last Modified on 10/20/2003

-

APPLIES TO


 * Microsoft BASIC Interpreter 3.0 for Macintosh
 * Microsoft BASIC Interpreter 2.0
 * Microsoft BASIC Interpreter 2.1 for Macintosh

-



This article was previously published under Q20591



SYMPTOMS
The sample program shown in the More Information section below demonstrates a problem with the WINDOW OUTPUT n statement in interpreted programs. In the program, the PRINT and LINE output correctly appears the first time in window 1 (the current output window); however, after the INPUT statement is invoked, all subsequent output statements incorrectly go to window 2.



RESOLUTION
In compiled QuickBasic programs, PRINT and LINE output correctly goes to window 1.

To eliminate the problem, place another WINDOW OUTPUT 1 statement after the INPUT statement.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Program Code Sample to Reproduce Problem
WINDOW 1,"Window 1",(4,40)-(510,200) WINDOW 2,"Window 2",(4,220)-(510,340) WINDOW OUTPUT 1 Display: PRINT "This should always print in window 1" LINE (1,1)-(30,30)       ' This line should always go to window 1. INPUT "OK";R$ IF F$<> "exit" THEN Display

Additional query words: MQuickB 1.00 2.00 2.10 3.00 B_BasicInt buglist1.00 buglist2.00 buglist2.10 buglist3.00

Keywords: kbbug KB20591

-

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

© Microsoft Corporation. All rights reserved.