dos_compilers/Microsoft QuickBASIC v3/manual/nga9db.html

50 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2024-07-01 22:00:14 +02:00
<HTML>
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
<BODY>
<A HREF="nga150.html">[&lt;&lt;Previous Entry]</A>
<A HREF="ng320.html">[^^Up^^]</A>
<A HREF="ngae1d.html">[Next Entry&gt;&gt;]</A>
<A HREF="menu.html" >[Menu]</A>
<A HREF="info.html">[About The Guide]</A>
<HR>
<PRE>
<B>CONST Declare Symbolic Constant(s)</B>
<B>CONST</B> <U>name</U> = <U>expr</U> [,<U>name</U> = <U>expr</U>...]
Declares one or more symbolic constants.
<U>name</U> 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.
<U>expr</U> An expression consisting of literals, with or without
operators, only. The exponentiation operator may not be
used, nor may any intrinsic function.
-----------------------------------------------------------------------
<B>Notes:</B> 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.
</PRE>
<HR>
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by <A HREF="http://www.acemake.com/hagbard">Dave Pearson</A>
<HR>
</BODY>
</HTML>