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

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com