murphy
2015-09-28 14:07:33 UTC
In Delphi 2009 this code works fine.
In Delphi 10 Seattle produce error:
[dcc32 Error] ...: E2064 Left side cannot be assigned to
How to customize the code to Delphi 2010?
type TParam = record
Tim : Integer;
URL: string;
Por : Integer;
Act : string;
end;
private
fMyParam : TParam;
procedure SetMyParam(const Value: TParam);
published
property MyParam: TParam read fMyParam write SetMyParam;
procedure SetMyParam(const Value: TParam);
begin
fMyParam := Value;
end;
procedure Init;
// ***********
// [dcc32 Error] ...: E2064 Left side cannot be assigned to
// ***********
with MyParam do begin
Tim := 100;
URL := 'http://test.com';
Por := 21;
Act := 'open';
end;
end;
In Delphi 10 Seattle produce error:
[dcc32 Error] ...: E2064 Left side cannot be assigned to
How to customize the code to Delphi 2010?
type TParam = record
Tim : Integer;
URL: string;
Por : Integer;
Act : string;
end;
private
fMyParam : TParam;
procedure SetMyParam(const Value: TParam);
published
property MyParam: TParam read fMyParam write SetMyParam;
procedure SetMyParam(const Value: TParam);
begin
fMyParam := Value;
end;
procedure Init;
// ***********
// [dcc32 Error] ...: E2064 Left side cannot be assigned to
// ***********
with MyParam do begin
Tim := 100;
URL := 'http://test.com';
Por := 21;
Act := 'open';
end;
end;