Navigation:  thinBasic language > Data types and variables > DIM >

CONST

Previous pageReturn to chapter overviewNext page

 

Description

 

Synonymous of DIM keyword but with the advantage that the new variable cannot be changed during script execution.

 

Syntax

 

see DIM keyword

 

Returns

 

None

 

Parameters

 

Remarks

 

Restrictions

 

See also

 

ReDim, Dim, BEGIN CONST/END CONST

 

Examples

 

'---Example

Const MyVar     As Number Value Timer

Const MyStr     As String Value App_Path

Const CountItems As Long   Value -1