E2463 '%s' directive not allowed in record type (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Error and Warning Messages (Delphi)

This occurs when using directives that are not allowed in record types.

program E2463;

{$APPTYPE CONSOLE}

uses
  SysUtils;

type
TMyRec = record
   F: Integer;
   function IsStored: Boolean;
   property X1: Integer read F write F default 0; // E2463
   property X2: Integer read F write F stored IsStored; // E2463
   property X3: Integer read F write F nodefault; // E2463
end;
begin
  
end.