A constant snippet defines one or more Pascal constants. They can either be true constants or typed constants.
Each constant snippet begins with the const keyword as the first non-space text in the source code. Comments may not preceed it. The const keyword is followed by at least one space or newline and then one or more constant definitions.
Here's an example of a valid constant snippet:
const cRangeMax = 3; cRangeMin = 1; cIntArray: array[cRangeMin..cRangeMax] of Integer = (42, 56, 99);
Constant snippets may refer to other simple type definitions, class & advanced record definitions or constants, providing they are defined in Delphi units or elsewhere in the database. The snippet's units and dependencies references should indicate where to find the other types and constants. Constants may not reference routine, unit or freeform snippets.