E2283 Too many local constants. Use shorter procedures (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Error and Warning Messages (Delphi)

One or more of your procedures contain so many string constant expressions that they exceed the compiler's internal storage limit. This can occur in code that is automatically generated. To fix this, either shorten your procedures or declare constant identifiers instead of using so many literals in the code.

The DCC32 and DCCOSX compilers produce E2283 when the code generator gives up after literal/const values exceed 64Kbytes. This 64K limitation applies to string, set, and floating-point values in expressions of a function body, and the limitation is per function.

Currently, the DCC64 compiler does not produce E2283.