function StrToInt64(const S: Substring): Int64; overload; inline;
Converts S to an Int64 by ToInt64's rules.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | S | Substring |
Returns: Int64
Remarks:
A text that is no Int64 raises EConvertError: '<text>' is not a valid integer value.
Examples
A value past Integer's range.
uses Substr, System.SysUtils;
procedure Example;
begin
Assert(StrToInt64(Substring('9000000000')) = 9000000000);
end;