Home Left side cannot be assigned for a record type
 I am trying to upgrade my application from Delphi 2007 to Delphi 10 Seattle. I understand that a record needs to be copied to a local variable before changing and then assigned back. I am trying the same but I still get the error that I cannot assign to a left side. Could someone please help. procedure TMydlg.WMGetMinMaxInfo(var Msg:TMessage); var MinMaxInfo: TMinMaxInfo; begin inherited; MinMaxInfo := (PMinMaxInfo(Msg.LParam)^); with MinMaxInfo do begin ptMinTrackSize.X := MinWidth; ptMinTrackSize.Y := MinHeight; ptMaxTrackSize.X := MinWidth; end; // Error here. Left side cannot be assigned to (PMinMaxInfo(Msg.LParam)^) := MinMaxInfo;  TMinMaxInfo is from Winapi.windows