Table of Contents

ugBASIC User Manual

CONST GLOBAL ✓

SYNTAX

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

PURPOSE

EXAMPLE

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

See also the following example files:

ABBREVIATION

 C#Gb

AVAILABLE ON

ALIAS FOR

SHARED CONST SHARED SHARED CONST GLOBAL CONST

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