# Constant Snippets

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 precede it. The const keyword is followed by at least one space or a new line 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 constant definitions, simple type definitions or class & advanced record definitions, 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.