Table of Contents

ugBASIC User Manual

GLOBAL CONST ✓

SYNTAX

   [POSITIVE] GLOBAL CONST identifier = value
   GLOBAL CONST identifier IN (min,max) = value
   GLOBAL CONST identifier IN "[" min,max) = value
   GLOBAL CONST identifier IN (min,max "]" = value
   GLOBAL CONST identifier IN "[" min,max "]"" = value

PURPOSE

EXAMPLE

  GLOBAL CONST x = 42
  POSITIVE GLOBAL CONST y = -42: ' this raises an error!
  GLOBAL CONST width IN (0,320] = 128

See also the following example files:

ABBREVIATION

 GbC#

AVAILABLE ON

ALIAS FOR

SHARED CONST SHARED SHARED CONST CONST GLOBAL

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY