C
cocoa2135
Unregistered / Unconfirmed
GUEST, unregistred user!
ExamInfo:array of TStrings;
----------------------------------------
SetLength(ExamInfo,MaxCount);
for i:=0 to MaxCount-1 do
begin
ExamInfo:=TStringList.Create;
end;
-----------------------
使用完了后,我想释放内存,应该怎么做?
for i:=0 to MaxCount-1 do
begin
ExamInfo.Free;
end;
这样可以吗?
谢谢了
----------------------------------------
SetLength(ExamInfo,MaxCount);
for i:=0 to MaxCount-1 do
begin
ExamInfo:=TStringList.Create;
end;
-----------------------
使用完了后,我想释放内存,应该怎么做?
for i:=0 to MaxCount-1 do
begin
ExamInfo.Free;
end;
这样可以吗?
谢谢了