Rules for variable names generation
- 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.
- 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.
- Variable names mustn't start with an underscore.
- Variable names must contain more than one character, except for loop counters. It is allowed to assign loop counters with single-character names.
- 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