ERR_INVALID_RANGE

Unit: EgStrParser

const
  ERR_INVALID_RANGE = 2;

The input is a range and its left bound is greater than its right bound. Checked for itInteger, itDecimal, itFloat, itDate, itTime and itDateTime; itString and itBoolean ranges are never checked.

R := ParseInput('100~1', itInteger);
// R.ResultType = otInvalid
// R.ErrorCode  = ERR_INVALID_RANGE

R := ParseInput('2026-12-31~2026-01-01', itDate);
// R.ErrorCode  = ERR_INVALID_RANGE

Equal bounds are allowed: 10~10 gives BETWEEN 10 AND 10.

Values and SQLValues keep the two bounds, which can be shown in the error message.

See Also

(C) 2026 Easygate, Lda