[This is preliminary documentation and is subject to change.]
Parses the given string as a literal value and returns the appropriate base data type.
- val (String)
- The value to parse.
The base data type indicated by the value parsed. If the value does not correspond to a valid literal, _undefined_ is returned.
Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)
The value can be a text, numeric or datetime literal. Text literals are bounded by single or double quotes. For numeric literals. it finds the 'minimum' type which can hold the value. Eg 214 will give Byte. Integral types are returned in preference to floating point and floating point in preference to Decimal.