Open GoogleCodeExporter opened 9 years ago
in the interator, could check for a nil val too:
function TSuperObject.Clone: ISuperObject;
var
ite: TSuperObjectIter;
arr: TSuperArray;
j: integer;
begin
...
stObject:
begin
Result := TSuperObject.Create(stObject);
if ObjectFindFirst(self, ite) then
with Result.AsObject do
repeat
if ite.val<>Nil then
PutO(ite.key, ite.val.Clone)
else
PutO(ite.key, Nil);
until not ObjectFindNext(ite);
ObjectFindClose(ite);
end;
Original comment by hubert.t...@gmail.com
on 12 Dec 2013 at 5:40
Original issue reported on code.google.com by
krystian...@gmail.com
on 22 Mar 2013 at 1:32