Type: TInputType |
Unit: EgStrParser
Accepts a whole number, parsed as Int64.
Decimal digits, optionally preceded by + or
-. A decimal point, an exponent and hexadecimal forms
($1F, 0x1F) are rejected with ERR_INVALID_FORMAT.
Spaces are removed before parsing, so 1 000 is read as
1000. A comma separates list items, so 1,000 is the list 1
and 0 (IN (1, 0)), not one thousand; 1.000 is
rejected.
Valid: 42 -7 +5 0 9223372036854775807
Invalid: 1.000 1.5 3e4 $1F 0x1F
Changed in 2.1.0: earlier versions accepted hexadecimal forms (
$1Fwas read as 31).
Both hold the canonical decimal form produced by
IntToStr; the output does not depend on the locale.
Input: 42 -> Values[0]: 42 SQLValues[0]: 42
Both , and ; separate list items.
Input: 1,2,3 -> otList, SQLExpression: IN (1, 2, 3)
Input: 1;2;3 -> otList, SQLExpression: IN (1, 2, 3)
Input: 1~100 -> otRange, SQLExpression: BETWEEN 1 AND 100
Input: -7~+7 -> otRange, SQLExpression: BETWEEN -7 AND 7
The left bound must not be greater than the right bound; otherwise ERR_INVALID_RANGE
is returned.