Board index » delphi » Why the pointor is moved into next record?
Chai
![]() Delphi Developer |
Mon, 26 Apr 2004 15:44:16 GMT
Why the pointor is moved into next record?
DetailDataSet:TClientDataSet;
When I commentted the content,the DetailDataSet pointor is normal for moving. If I uncomment the content,the pointor of dataset jump 1 into 3..5,7 and so on. Have the pointor related with TClientDataSet.FieldByName ???? while not DetailDataSet.Eof do aVar[5]:=DetailDataSet.FieldByName('Plan_line').AsInteger; DetailDataSet.FieldByName('Req_id').AsString:=aVar[0]; DetailDataSet.FieldByName('Req_line').AsInteger:=reqLine; DetailDataSet.FieldByName('req_date').AsDateTime:=aVar[1]; DetailDataSet.FieldByName('taken_by').AsString:=aVar[2]; |