ERR_EMPTY_NOT_ALLOWED

Unit: EgStrParser

const
  ERR_EMPTY_NOT_ALLOWED = 5;

opRequired is set and the whole input (after opTrim, when set) is empty. For itString without opTrim, spaces are a value and do not give this error; combine opRequired with opTrim to reject them.

R := ParseInput('', itDate, [opRequired]);
// R.ResultType = otInvalid
// R.ErrorCode  = ERR_EMPTY_NOT_ALLOWED

R := ParseInput('   ', itString, [opRequired, opTrim]);
// R.ErrorCode  = ERR_EMPTY_NOT_ALLOWED

See Also

(C) 2026 Easygate, Lda