ERR_EMPTY_NOT_ALLOWED

Unit: EgStrParser

const
  ERR_EMPTY_NOT_ALLOWED = 5;

A opção opRequired está activa e a entrada inteira (depois de opTrim, quando activa) está vazia. Em itString sem opTrim, os espaços são um valor e não dão este erro; combine opRequired com opTrim para os rejeitar.

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

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

Ver também

(C) 2026 Easygate, Lda