TParseOptions is
a set of TParseOption flags
given to ParseInput to
control the processing after the input is split into tokens. The default
is [] (no options).
| Option | Applies to | Effect |
|---|---|---|
opTrim |
all types | Removes leading and trailing spaces from the input and from each token. |
opNotNull |
all types | Rejects any token that became NULL: ERR_NULL_NOT_ALLOWED. |
opRequired |
all types | Rejects empty input: ERR_EMPTY_NOT_ALLOWED. |
opEmptyStringNull |
itString |
Empty tokens give NULL instead of ''. |
opUpperCase |
itString |
Converts the values to upper case. |
opLowerCase |
itString |
Converts the values to lower case. |
opTrim (when set): applied to the
whole input.opRequired: checked against the
(possibly trimmed) input; stops with ERR_EMPTY_NOT_ALLOWED
when it is empty.opTrim on
the token, opEmptyStringNull, opUpperCase /
opLowerCase.opNotNull: checked after all the
tokens; stops with ERR_NULL_NOT_ALLOWED when an entry of
SQLValues is NULL.opNotNull.R := ParseInput(Edit1.Text, itString, [opTrim, opRequired, opUpperCase]);