Skip to main content
guest
Join | Help | Sign In
Liberty BASIC Programmer's Encyc Home
guest| Join | Help | Sign In
Liberty BASIC Programmer's Encyc
  • Wiki Home
  • Recent Changes
  • Pages and Files
  • Members

Home

General Tutorials
Advanced Tutorials
GUI Programming
Graphics and Games
Strings and Text
Numbers and Math
Using Files
Windows API
Communications
Programmer's Tools

Articles by Date
FAQs
Rosetta Code
General Articles
Newsletters Contents

Table of Contents
Demos

Submit Articles
TOS and License

NoMainWin

Edit 1 …
  • 1 Tags
    • tutorials
  • Notify
  • RSS
  • Backlinks
  • Source
  • Print
  • Export (PDF)
Older Version Newer Version

Alyce Alyce May 9, 2011

=NoMainWin= [[toc]] ---- The NOMAINWIN command is a compiler directive, not a command as such. If Liberty BASIC "sees" this command any place in the code, there will be no mainwin in the program. It doesn't matter if the code that contains the command is never executed. Liberty BASIC compiles the code at runtime, and if it finds a NOMAINWIN command anywhere in the code, no mainwin is displayed. In the following example, since the variable "a" is equal to "2", the code within the "if...then" routine is not executed, yet Liberty BASIC "sees" the NOMAINWIN command and suppresses the mainwin. [[code format="lb"]] a = 2 if a = 4 then nomainwin end if notice "There is no mainwin!" [[code]] In the following example, the code routine containing the NOMAINWIN command is never executed, yet Liberty BASIC "sees" the NOMAINWIN command and suppresses the mainwin. [[code format="lb"]] notice "There is no mainwin!" wait [branchLabel] nomainwin wait [[code]] ==Closing the Mainwin== There is no command to close the mainwin. There is also no command to open it. It appears by default unless the program contains a NOMAINWIN command somewhere in the code.
Help · About · Pricing · Privacy · Terms · Support · Upgrade
Contributions to https://lbpe.wikispaces.com/ are licensed under a Custom License.
Portions not contributed by visitors are Copyright 2018 Tangient LLC
TES: The largest network of teachers in the world
Turn off "Getting Started"
  1. Home
  2. ...
Loading...