Naming Conventions for Report Object Variables
When you use report object variables in CDM, you should follow a naming convention, so that it will be easy to understand the purpose of each variable.
When you are planning the naming convention for your report object variables, be careful to select a pattern that CDM can interpret correctly when it compiles your report. Best practice is to create the name of a report object variable in the following order:
- Two pound signs to indicate that this is a variable.
- A number to indicate the numbering of the variable.
- A word to indicate the type of item represented by the variable.
In the following incorrect example, the number follows the word and can cause an error when CDM compiles your report:
Variable |
Result |
|---|---|
|
When the report is compiled, a search is performed for all instances of the variable |
In the following correct example, the variables are changed so that the number precedes the word:
Variable |
Result |
|---|---|
|
When the report is compiled, a search is performed for all instances of the variable |