[fpc-pascal] Error: Argument cannot be assigned to
Juha Manninen
juha.manninen62 at gmail.com
Sun Jun 4 15:12:37 CEST 2023
Formatting was a little weird. This is what I meant, but the error remains :
type
TMyRec = record
ss: String;
ii: Integer;
end;
TMyClass = class
private
fName: String;
fRecInstance: TMyRec;
public
property RecInstance: TMyRec read fRecInstance;// write fRecInstance;
end;
var
MyObj : TMyClass;
begin
MyObj := TMyClass.Create;
MyObj.RecInstance.ii := 123;
MyObj.Free;
end.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20230604/0a3a4db0/attachment.htm>
More information about the fpc-pascal
mailing list