Const

Non-modifiable variable declaration.

Syntax
	Const symbolname1 [AS DataTypeDataType] = value1 [, symbolname2 [AS DataTypeDataType] = 
	value2, ...]
		or
	Const [AS DataTypeDataType] symbolname1 = value1 [, symbolname2 = value2, ...]

Description
	Declares non-modifiable constant data that can be integer or decimal 
	(floating-point) numbers or strings. The constant type will be inferred 
	if DataTypeDataType isn't explicitly given.

	Specifying KeyPgStringString * Size, KeyPgZstringZstring * Size or KeyPgWstringWstring * Size as DataTypeDataType 
	is not allowed.
	Specifying KeyPgStringString as DataTypeDataType is tolerated but without effect because 
	the resulting type is always a KeyPgZstringZstring * Size.

	Constants follow visibility rules similar to those of variables for 
	Namespace blocks, Type blocks, and compound block statements.

Example
	Const Red = RGB(252, 2, 4)
	Const Black As UInteger = RGB(0, 0, 0)
	Const Text = "This is red text on a black bkgnd."

	Locate 1, 1
	Color Red, Black
	Print Text
	Sleep
	End

Differences from QB
	* QB does not support the KeyPgAsAs DataTypedatatype syntax.

See also
	* KeyPgPpdefine#define
	* KeyPgConstQualifierConst (Qualifier)
	* KeyPgConstMemberConst (Member)
	* KeyPgEnumEnum
	* KeyPgVarVar

