QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

Metacommands are program wide commands that start with $.

QBasic/QuickBASIC - Legacy metacommands


REM $INCLUDE: ‘QB.BI’ ‘loads a reference file or library

REM $DYNAMIC ‘enables resizing of array dimensions with REDIM

REM $STATIC ‘arrays cannot be resized once dimensioned


QB64 metacommands



$CHECKING{OFF ON} ‘disables QB64 C++ event and error checking (no spaces)

$COLOR ‘adds named color CONSTantes to a program

$CONSOLE ‘creates a QB64 console window throughout the program

$DEBUG enables debugging features, allowing you to step through your code line by line

$ERROR MESSAGE triggers a compilation error MESSAGE.

$EXEICON:’iconfile.ico’ ‘embeds an .ICO file into the final executable (Windows only)

$IF$ELSEIF$ELSE$END IF ‘precompiler directive

$LET variable = expression

$RESIZE:{ON OFF STRETCH SMOOTH} ‘determines if re-sizing of the program screen by the user is allowed

$SCREENHIDE ‘hides the QB64 program window throughout the program

$SCREENSHOW ‘displays the main QB64 program window

$VERSIONINFO:key=value ‘embeds version info metadata into the final executable (Windows only)



See Also