| A non-executable statement that declares symbolic constants to use in place of numeric or string values.
Syntax: CONST constantname [ as Datatype ]= expression CONST False = 0 CONST True AS LONG = NOT False CONST A$ = "Hi world!" CONST Char = CHR$(66) CONST Combine = A$ + Char
Details: Expression can be any value, numeric or string. Rapid-Q will decipher what the constant value will be bound to (ie. a string or a numeric variable) if the constantname is not followed by a type-declaration character (%. &, !, #, $, etc...). |
|