|
Constants are variables with a value that does not change, hence their name. Constant declaration does not exist in this programming language. The reason is that it was superfluous to add new keywords because everything could be done with the existing one. In practice, in this programming language, constants are treated as variables and they have to be declared as such, with a default value. It has to be taken special care their values will not be modified by any instruction in the rest of the code.
So:
Dim MyConst As Numeric = 10
declares a numeric constant with a value of 10.
|