Substring.Data Property

property Data: PChar read GetData;

The window's first character, not terminated: ToPChar gives a C string.

Returns: PChar

Examples

Reading through the pointer.

uses Substr;

procedure Example;
var s: Substring;
begin
    s := Substring('abc');
    Assert(s.Data^ = 'a');
    Assert(s.Data[2] = 'c');
end;