O
offline
Unregistered / Unconfirmed
GUEST, unregistred user!
请教包含动态数组的记录,应该怎么释放?
如:
TMyRecord=record
member1:integer;
member2:string;
aArray:array of integer;
end;
var
aMyRecord:TMyRecord;
释放aMyRecord时需要setLength(aMyRecord.aArray,0)吗?
谢谢!
如:
TMyRecord=record
member1:integer;
member2:string;
aArray:array of integer;
end;
var
aMyRecord:TMyRecord;
释放aMyRecord时需要setLength(aMyRecord.aArray,0)吗?
谢谢!