Rules for variable names generation

  1. To name a variable, use conventional terms related to the respective subject area so that the variable's name would be descriptive and convey its purpose to the reader.
  2. Variable names mustn't contain spaces, even when it is composed of a few words. Each word in a variable name starts with a capital letter, including pronounces and prepositions.
  3. Variable names mustn't start with an underscore.
  4. Variable names must contain more than one character, except for loop counters. It is allowed to assign loop counters with single-character names.
  5. Name Boolean variables so that the name would convey the true state of the variable.

Invalid variable name examples

arrOfAtrribute, _SetTypeDoc, nS

Correct variable name examples

Var DialogWorkingCatalog; 
Var NumberOfPacksInTheBox;
NewDocumentRef;

See