Metacommand: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
''' | '''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)
QB64 Metacommands
- $ASSERTS
- $CHECKING
- $COLOR
- $CONSOLE
- $DEBUG
- $EXEICON
- $NOPREFIX
- $RESIZE
- $SCREENHIDE
- $SCREENSHOW
- $VERSIONINFO
- $VIRTUALKEYBOARD
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