Subject | Re: [IBO] Cursor.RecordCount |
---|---|
Author | Lucas Franzen |
Post date | 2001-01-12T12:31:03Z |
guido.klapperich@... schrieb:
I can't tell you why this happens, but it's not a goof idea to use
record count at all for stepping through a dataset, being it a
TIB_Cursor or TIB_Query.
Use WHILE NOT EOF instead.
Regards
Luc.
>Guido,
> When I open a IB_Cursor, I get only 6 rows, when I go to the last
> record, but Recordcount has the value 8. The problem is, that I walk
> through the Cursor like this:
> Cursor.APIFirst;
> for i:=1 to Cursor.RecordCount do
> begin
> TreeView.Items.AddChild(Node,Cursor.Fields[0].AsString);
> Cursor.APINext;
> end;
>
> There are only 6 rows, but RecordCount is 8. Any ideas?
I can't tell you why this happens, but it's not a goof idea to use
record count at all for stepping through a dataset, being it a
TIB_Cursor or TIB_Query.
Use WHILE NOT EOF instead.
Regards
Luc.