CONST

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Data types and variables > DIM >

CONST

 

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