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.
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal