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.

The DEFSNG statement defines all variables with names starting with the specified letter (or letter range) AS SINGLE variables.

Legacy Support

Syntax

DEFSNG letter[-range], letter2[-range2], […]

Description

QBasic

Example(s)


DEFSNG A, F-H, M

'With the above, all variables with names starting with A, F, G, H and M
'will be of type SINGLE, unless they have a type suffix
'indicating another type or they are dimensioned differently

See Also