ZX BASIC:CONST

From BorielWiki
Jump to: navigation, search

CONST

Syntax

 
CONST <varname> [AS <type>] = <value>

Description

CONST declares a non-modifable variable.

<type> can be something like INTEGER, BYTE, FLOAT, etc. See the list of available types. If type is not specified, FLOAT will be used, unless you use a modifier like $ or %.

Examples

 
CONST screenAddress AS UINTEGER=16384