Declaring Local and Global in a function

BlitzMax Forums/BlitzMax Programming/Declaring Local and Global in a function

Const exist on type level as globals do.
And you can access them globally outside, many here use that approach to fake enumeration.

type TEnum
  const up:int = 100
  const left:int = 100
end Type

print TEnum.up + "," + TEnum.left