Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing to the Console window while still having a Screen
#1
How can i print something to the Console Window while still having a Screen open?

I mean something like

SCREENRES 320,200,32,,0
PRINT.TO.Console "Hello World"
url=http://www.sloganizer.net/en/][Image: style4,TheDarkJay.png][/url]
Reply
#2
heres an example from antoni

http://www.freebasic.net/forum/viewtopic...ht=console
EVEN MEN OF STEEL RUST.
[Image: chav.gif]
Reply
#3
Doesn't seem to work for me... Sad
url=http://www.sloganizer.net/en/][Image: style4,TheDarkJay.png][/url]
Reply
#4
no me neither sorry didnt test, change to this

Code:
screen 12
open "CONS" for output as #1
print #1 ,"Hello"
sleep
EVEN MEN OF STEEL RUST.
[Image: chav.gif]
Reply
#5
Quote:no me neither sorry didnt test, change to this

Code:
screen 12
open "CONS" for output as #1
print #1 ,"Hello"
sleep

That works fine...thx. debugging code just became a whole lot easier
url=http://www.sloganizer.net/en/][Image: style4,TheDarkJay.png][/url]
Reply
#6
Code:
#define DEBUG
#ifdef DEBUG
#  define dprint(msg) open err for output as #24:print #24,"debug: ";msg:close #24
#else
#  define dprint(msg):
#endif
dprint("any debug messages")

If you have for example 100 Lines of debug messages in your code and all works you must remove it all for a final version.

only remove the first line #define DEBUG and all dprint() calls are removed from your code without to do it manualy.

Try it out and have fun.

Joshy
sorry about my english
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)