Metacommand: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''{{Text|Metacommands|blue}} are commands that start with {{Text|dollar sign ($)|blue}}. Those commands usually switch the program between different operation modes/behavior or provide extended functionality.'''
'''Metacommands''' are commands that start with '''dollar sign ($)'''. Those commands usually switch the program between different operation modes/behavior or provide extended functionality.




Line 7: Line 7:
==Legacy Metacommands (QBasic/QuickBASIC)==
==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 ''[[Apostrophe|']]'' or [[REM]].
:*Legacy metacommands are normally used at the program start, they should have their own program line and must be commented with an ''[[Apostrophe|']]'' or [[REM]].
* [[$DYNAMIC]]
* [[$INCLUDE]]
* [[$STATIC]]




Line 12: Line 15:
:*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 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 ''[[Apostrophe|']]'' or [[REM]], but should have their own program line too.
:*QB64 metacommands must not be commented with an ''[[Apostrophe|']]'' or [[REM]], but should have their own program line too.
* [[$ASSERTS]]
* [[$CHECKING]]
* [[$COLOR]]
* [[$CONSOLE]]
* [[$DEBUG]]
* [[$EXEICON]]
* [[$NOPREFIX]]
* [[$RESIZE]]
* [[$SCREENHIDE]]
* [[$SCREENSHOW]]
* [[$VERSIONINFO]]
* [[$VIRTUALKEYBOARD]]




==OB64 Precompiler Commands==
==OB64 Precompiler Commands==
:*These are a special type of ''{{Text|QB64 Metacommands|blue}}'', which allow for conditional compiling, hence including or excluding certain code sections depending on given conditions.
:*These are a special type of ''{{Text|QB64 Metacommands|blue}}'', which allow for conditional compiling, hence including or excluding certain code sections depending on given conditions.
* [[$ELSE]]
* [[$ELSEIF]]
* [[$END IF]]
* [[$ERROR]]
* [[$IF]]
* [[$LET]]





Revision as of 22:14, 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