When naming variables, use the following recommended format.
- [ Scope]
Specifies a character that indicates the range of reference for the variable.
The following table lists suggested values for Scope.
Note: In some cases, explicit scoping does not apply. For example, in the main program of a standalone application, there is no difference in visibility for variables scoped as PUBLIC or PRIVATE. In sample programs, the type prefix is always relevant and required.
Specifies a character that indicates the data type of the variable.
The following table lists suggested values for Type.
Character, Varchar, Varchar (Binary)
- Specifies the name of the variable.
The following example illustrates how the letter "n" indicates that the Counter variable has Numeric type and local scope: