SETID

Top  Previous  Next

Syntax

SETID "name", value

Description

Creates an @ constant.

Parameters

name - Name of the constant. Must be unique.

value - UINT value of constant

Return value

None

Remarks

@ constants are used throughout the EBASIC language and are specially syntax colored in the IDE.  Unlike the CONST statement a SETID value cannot contain any math operators. The constant is evaluated at compile time.

See Also: CONST

Example usage

SETID "MYMESSAGE",0x400
SELECT @CLASS
    CASE @MYMESSAGE
...