Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b>const declare symbolic constant(s)</b> http://www.X-Hacker.org [<<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.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson