Naming Restrictions

Variable names follow the standard rules for naming anything in BSL.

A variable name:

  • Must start with an alphabet.
  • Cannot contain a embedded period.

The following examples illustrates the use of the Naming Restrictions:

Example 1:

Dim FirstName
FirstName = "John"

'Below is illegal
Dim 1One  'Syntax Error as it is not starting with alphabetic

'Below is illegal
Dim One.Var  'Syntax Error as it has period embedded

Example 2:

Dim Age
Age = 30