FBWiki : KeyPgConst

FBWiki :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

CONST


Non-modifiable variable declaration.

Syntax:
Const symbolname [AS DataType] = value [, ...]

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 isn't explicitly given.

Examples:
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:

See also:

Back to Variable Declarations

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.0



sf.net phatcode