[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CONST                    Declare Symbolic Constant(s)

 CONST name = expr [,name = expr...]

    Declares one or more symbolic constants.

        name    An identifier that follows the rules for naming BASIC
                variables. A type character (%, #, !, or $) may be
                included in the declaration, but the type character does
                not have to be used in statements that reference the
                constant.

        expr    An expression consisting of literals, with or without
                operators, only. The exponentiation operator may not be
                used, nor may any intrinsic function.

   -----------------------------------------------------------------------

      Notes:    Symbolic constants produce more efficient code than do
                constant values assigned to variables.

                Symbolic constants are global.

                If a type character is not included in the constant name,
                the compiler evaluates the expression and assigns the most
                compact possible data type to the constant.

                DEFtype statements do not affect symbolic constants.

                Symbolic constants must be defined before they're
                referenced.

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson