Metacommand: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 40: Line 40:


{{PageSeeAlso}}
{{PageSeeAlso}}
* [[Statement]], [[Function (explanatory)]]
* [[Statement]]
* [[Function (explanatory)]]
* [[REM]]
* [[REM]]
* [[DIM]], [[REDIM]]
* [[ON TIMER(n)]]




{{PageNavigation}}
{{PageNavigation}}

Revision as of 22:19, 11 July 2022

Metacommands are commands that start with dollar sign ($). Those commands usually switch the program between different operation modes/behavior or provide extended functionality.


Legacy Metacommands (QBasic/QuickBASIC)

  • Legacy metacommands are normally used at the program start, they should have their own program line and must be commented with an ' or REM.


QB64 Metacommands

  • QB64 metacommands must not necessarily used at the program start. However, it's still the best location for some of it (see individual descriptions).
  • QB64 metacommands must not be commented with an ' or REM, but should have their own program line too.


OB64 Precompiler Commands

  • These are a special type of QB64 Metacommands, which allow for conditional compiling, hence including or excluding certain code sections depending on given conditions.


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link