Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Futurebasic/Language/Reference/constant declaration

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Constant declaration statement Constant declaration Statement ✔ Appearance ✔ Standard ✔ Console Syntax _constantName = staticExpr Description This is a non-executable statement which assigns the value of staticExpr to the symbolic constant indicated by _constantName. The _constantName must indicate a name which was not defined anywhere previously in the program, and which is different from all pre-defined FB symbolic constant names. The name must be preceded by an underscore ( _ ) character. The staticExpr must be a "static integer expression"; it cannot contain any variables nor function references. The constant declaration statement is one of several ways to assign values to symbolic constant names. Other ways include using the DIM RECORD statement and using the BEGIN ENUM statement. See Also DIM RECORD BEGIN ENUM Appendix C: Data Types and Data Representation