Changes

Jump to: navigation, search

Declaring Visual Basic Variables and Constants

1 byte removed, 18:53, 9 April 2009
Declaring and Referencing Visual Basic Constants
Constants, once declared and initialized cannot be changed (hence the name ''constant' and are declared using the Visual Basic ''Const'' keyword. The syntax for declaring variables is as follows:
'''Const''' ''constName'' '''As''' ''datatype'' = ''value''.
For example, to declare a String constant named ''companyName'' with a value of ''Techotopia'' the declaration would read as follows:

Navigation menu