MAINWIN prints when closed
MAINWIN prints when closed
The Mainwin has just started printing it's contents when I close it with the "X" in the upper right corner. It just started. Any ideas what's going on?
Re: MAINWIN prints when closed
You are PRINTing a CHR$(2) to the mainwin. This causes it to send everything subsequently output also to the printer (it's a BBC BASIC feature).
Check your program's PRINT statements carefully; somewhere you are outputting a string which contains a CHR$(2).
This will demonstrate what I mean:
Code: Select all
print chr$(2)
print "This will appear on the printer when the window is closed"
Re: MAINWIN prints when closed
Thanks a bunch, that is the problem