Liberty BASIC Help Online

This command instructs Liberty BASIC not to open a main window (the mainwin) for the program that includes this statement.  Some simple programs which do not use separate windows for graphics or text may use only the mainwin.  Other programs may not need the mainwin to do their thing. If the mainwin is not needed, including NOMAINWIN somewhere in the program source code prevents the window from opening.
If NOMAINWIN is used, when all other windows owned by that program are closed, then the program terminates execution automatically.
It is often better to place a NOMAINWIN statement in a program after it is completed and debugged, so that you can easily terminate an errant program just by closing its mainwin.
Open "Test" for window as #win

Copyright (C) 2003 Shoptalk Systems
Liberty BASIC -