I\'m curious to know why Delphi treats record type properties as read only:
TRec = record A : integer; B : string; end; TForm1 = class(TForm)
The simplest approach is:
procedure TForm1.DoSomething(ARec: TRec); begin with Rec do A := ARec.A; end;