QB64.com

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

OPTION _EXPLICIT instructs the compiler to require variable declaration with DIM, REDIM or an equivalent statement.

Syntax

OPTION _EXPLICIT

Description

Error(s)

Example(s)

Avoiding simple typos with OPTION _EXPLICIT results shown in the QB64 IDE Status area.


OPTION _EXPLICIT

DIM myVariable AS INTEGER

myVariable = 5

PRINT myVariabe

QB64 IDE Status will show: Variable ‘myVariabe’ (SINGLE) not defined on line 4

See Also