Subject Re: [IBO] Cursor.RecordCount
Author Lucas Franzen
guido.klapperich@... schrieb:
>
> 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?

Guido,

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.