#CONSOLE metastatement 


Enable or disable auto-creation of a console window upon execution of the program.




#CONSOLE OFF can be used to create a program which doesn't need to output a visible result to the screen.


Without a console window attached, do not use commands that expect keyboard input, such as CON.WAITKEY$, CON.WAITSTAT, CON.INPUT, or CON.INKEY$.  With no console from which to acquire input, these commands will simply lock up your program.

#CONSOLE ON|OFF must precede all executable code.  If #CONSOLE is omitted, the default condition is #CONSOLE ON.

See also

CONSOLE pseudo-object