Documentation (c) 2006-2008 Hobby-Robotics, LLC
Constant values of simple types and strings can be declared globally outside of any Sub, Function or Irq or locally inside Sub, Function or Irq. When globally declared they are visible from any subroutine. Const values can not be changed during program execution, all constants are located in the Flash memory.
Example:
Const cBoolean As Boolean = True
Const cSByte As SByte = -1
Const cByte As Byte = 0
Const cShort As Short = &h1
Const cUShort As UShort = 65535
Const cInteger As Integer = -1000
Const cUInteger As UInteger = &HFFFFFFFF
Const cSingle As Single = 10.33333
Const cString As String = “const string”