Substring.ToInt64 Method

Overload List

#SignatureDescription
1function ToInt64: Int64; overload; inline;Converts the text to an Int64 as StrToInt64 does: ToInteger's rules over 64 bits.
2class function ToInt64(const S: Substr.Substring): Int64; overload; static; inline;
3class function ToInt64(const S: string): Int64; overload; static; inline;

Overload 1: function ToInt64: Int64; overload; inline;

Converts the text to an Int64 as StrToInt64 does: ToInteger's rules over 64 bits.

Returns: Int64 - The value.

Examples

A value past Integer's range.

uses Substr;

procedure Example;
begin
    Assert(Substring('9000000000').ToInt64 = 9000000000);
end;

Overload 2: class function ToInt64(const S: Substr.Substring): Int64; overload; static; inline;

#NameTypeDescription
1SSubstr.Substring

Returns: Int64

Overload 3: class function ToInt64(const S: string): Int64; overload; static; inline;

#NameTypeDescription
1Sstring

Returns: Int64