H
handsome1234
Unregistered / Unconfirmed
GUEST, unregistred user!
先定义如下结构:
type
PMyList = ^AList;
AList = record
IncNumber,Count: Integer;
B_IndexDrop:Boolean;
end;
ARecord,BRecord: PMyList;
var
i,Int_Orig:integer;
具体调用时
New(ARecord);
for B := 0 to (MyList.Count - 1) do
begin
ARecord := MyList.Items;
if ARecord^.IncNumber=IncNumber_Temp then break;
end;
Int_Orig:=ARecord^.Count;//这句注释调下面一句就没问题
Dispose(ARecord);//否则异常,是什么问题阿?
type
PMyList = ^AList;
AList = record
IncNumber,Count: Integer;
B_IndexDrop:Boolean;
end;
ARecord,BRecord: PMyList;
var
i,Int_Orig:integer;
具体调用时
New(ARecord);
for B := 0 to (MyList.Count - 1) do
begin
ARecord := MyList.Items;
if ARecord^.IncNumber=IncNumber_Temp then break;
end;
Int_Orig:=ARecord^.Count;//这句注释调下面一句就没问题
Dispose(ARecord);//否则异常,是什么问题阿?