Closed vkrapotkin closed 8 years ago
p.s. Delphi Seattle Upd1
Unfortunately, I still have Value=NIL in Set_List(Value) Seems nothing has been changed
Hi. Thanks a lot for your great work and for the answer.
I found a source of a problem
If I create new constructor for TMyObject like this
constructor Create(st:string; bl:Boolean; nm:single); reintroduce;
system breaks :(
BUT! I found a workaround too!
TMyObject=class
...
constructor Create; reintroduce; overload;
constructor Create(st:string; bl:Boolean; nm:single); overload;
end;
constructor TMyObject.Create;
begin
inherited;
end;
constructor TMyObject.Create(st: string; bl: Boolean; nm: single);
begin
inherited Create;
s:=st;
b:=bl;
n:=nm;
end;
I've attached the modified sample. But I have three another issues (feature requests)
To save a TObjectList property w/o the "garbage" as Count, Capacity, etc... I tryed a trick - to substitute List property by fake _List array
As a result. I successfully saved my Model object in a file. But reverse operation failed.
in Set_List proc, value of Value is NIL therefore my trick fails (((
can I do something to avoid this failure ??