Const Statement

Gives a name to a value that does not change.

Syntax

Const constant [ , constant ]...

Parts

constant
Necessary – one or more declarations with a comma between each.

Syntax

name [ As type ] = expression
name
Necessary name for a value type.
type
Optional primitive data type
expression
Necessary

Instructions

Const is short for “constant”.

Examples

Const MaxLength As UInt = 32768
Const HTTP_GET = "GET", HTTP_POST = "POST"
Const ScalingFactor = 5.0 / 3.0

See also