Constant Expression should not be Less than <Value>

Description

The left limit has a value greater than the right limit when defining the tolerance range.

Troubleshooting Tips

Check values of the constants and set the value not less than the specified one.

Example

Sub UserProc;
Const
    Min = 0;
    Max = -5;
Var
    a: Array[Min..Max];
Begin
    
End Sub UserProc;

When the specified code is compiled, the string of array declaration on the Max constant generates the following error: Constant expression should not be less than 0. To resolve the error, set the appropriate value for the Max constant.

See also:

Compiler Messages