Best Practices for Variables
This topic provides best practices to apply when working with variables.
For more information on working with variables, see Variables.
Creating Simple Variables
-
Use simple variables to store frequently used constant values. For example, create a text variable to store the text for a warning message that is used in multiple locations, or a decimal variable to store a frequently used value, such as a tax percentage. Doing so will simplify maintenance of your project, as opposed to hard coding such values into your project in multiple locations.
Naming convention: Recommended practice is to name variables that hold constants with capital letters, for example WARNING MESSAGE or SALES TAX.