In VBScript, You create user-defined constants using the Const statement. It lets you create string or numeric constants along with meaningful names and let you to assign them literal values. For illustration:
Const MyString = "This is my string." Const MyAge = 49
Note that the string literal is enclosed in quotation marks (" "). Quotation marks are the most apparent way to differentiate string values from numeric values. Date & time literals are represented through enclosing them in number signs (#). For instance:
Const CutoffDate = #6-1-97#
You may desire to adopt a naming scheme to differentiate constants from variables. It will save you from trying to reassign constant values whereas your script is running. For instance, you might desire to use a "vb" or "con" prefix on your constant names, or you may name your constants in every capital letters. Differentiating constants from variables remove confusion as you develop more complicated scripts.