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 | '''{{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.''' | ||
{| align="right" style="max-width:25%;" | |||
| __TOC__ | |||
|} | |||
==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]]. | |||
: | |||
* | |||
==QB64 Metacommands== | ==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 ''[[Apostrophe|']]'' or [[REM]], but should have their own program line too. | ||
: | |||
=== | ==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. | |||
* | |||
Line 53: | Line 23: | ||
* [[DIM]], [[REDIM]] | * [[DIM]], [[REDIM]] | ||
* [[ON TIMER(n)]] | * [[ON TIMER(n)]] | ||
{{PageNavigation}} | {{PageNavigation}} |
Revision as of 22:02, 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
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