SQLValues

Record: TParseResult | Unit: EgStrParser

SQLValues: TStringDynArray;

The SQL literal of each token, in the format of the TSqlDialect: strings in quotes with the quotes inside doubled, numbers with . as the decimal separator, DATE '...' and the other date and time forms, TRUE / 1 for booleans, and NULL for an empty token. It has the same length as Values.

Use it to build an expression that SQLExpression does not give, for example a condition on two columns:

R := ParseInput('2026-01-01~2026-03-31', itDate);
if R.ResultType = otRange then
  Filter := 'StartDate >= ' + R.SQLValues[0] + ' AND EndDate <= ' + R.SQLValues[1];
// StartDate >= DATE '2026-01-01' AND EndDate <= DATE '2026-03-31'

For the CONTAINS operators with a list, SQLValues keeps every token, including the empty ones that SQLExpression leaves out.

See Also

(C) 2026 Easygate, Lda