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

From Appmethod Topics
Jump to: navigation, search

Go Up to Error and Warning Messages (Object Pascal) Index

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.