Posts: 677
Threads: 57
Joined: Jan 2005
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/]
[/url]
Posts: 484
Threads: 14
Joined: Apr 2005
EVEN MEN OF STEEL RUST.
Posts: 677
Threads: 57
Joined: Jan 2005
Doesn't seem to work for me...
url=http://www.sloganizer.net/en/]
[/url]
Posts: 484
Threads: 14
Joined: Apr 2005
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.
Posts: 677
Threads: 57
Joined: Jan 2005
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/]
[/url]
Posts: 140
Threads: 13
Joined: Apr 2005
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