A variable is a name that refers to a value (for example, number, date, or string). The value of a variable can change as the program runs. Variables are defined by using them on the left side of an assignment statement (how they attain their initial value), or by explicitly declaring them in a Dim statement. Once a variable has been defined, it can be used in expressions.
Naming Variables
Variable names must comprise of letters of the alphabet (A-Z), numeric digits (0-9) or the underscore character (_). Names must start with a letter or the underscore (not a digit). Variable names are not case sensitive - you can use a mixture of upper and lower case letters. The following are examples of valid variable names:
X_1XY3
RetainedEarnings
Total
Variable names must not be keywords of MaxBasic (for example, function names such as Int, Abs, or Str). The following are not valid variable names:
1_XY
Next
Retained Earnings
A&B