Bug? Const keyword not capitalized in IDE

Alessandro71

Well-Known Member
Licensed User
Longtime User
writing
dim const variablename as string = "ConstantValue"
in the IDE gets auto-capitalized in
Dim const variablename As String = "ConstantValue"

the "const" keyword is not capitalized
 

DonManfred

Expert
Licensed User
Longtime User
this is the expected behaviour.
Dim
As
and String, Int, Float are reserved words (core) and are capitalized.
const is the variablename you defined and ou should expect it NOT to be capitalized.
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
so "Const" is not a keyword for defining a Constant?
thus the following line
dim const variablename as string = "ConstantValue"
actually defines 2 variables, the first named "const" and the second named "variablename"?
looks weird to me, since "const" is not recognized as a variable if i try to use it in subsequent code
 
Top