You are not logged in.
I know I can use TryStrToFloat, but is there any other (better, and faster) way provided by mORMot, to check if a string can be converted to number?
Offline
GetExtended() or GetInteger() or GetInt64() have overloaded versions which returns an error integer index, which is 0 if the UTF-8 text is a number.
You also have some other functions in the variants part of the framework, if you need to identify if some text is integer/currency/double or something else.
Offline