Substring.GetHashCode Method

function GetHashCode: Integer;

A hash of the window's characters, equal to the hash of a string with the same characters.

Returns: Integer

Examples

The same hash as the string's.

uses Substr, System.SysUtils;

procedure Example;
var t: string;
begin
    t := 'abc';
    Assert(Substring(t).GetHashCode = t.GetHashCode);
end;