Subject Re: [IBO] Cursor.RecordCount
Author Harald Klomann
Guido,

What setting is AutoFetchAll ? If true set to false.
But you can also set AutoFetchAll and then on event
AfterFetchRow do your
TreeView.Items.AddChild(Node,Cursor.Fields[0].AsString);
Then you dont have to deal recordCount, eof() etc..

Harald


guido.klapperich@... wrote:
>
> > 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.
>
> After doing APIFirst Cursor.EOF is true, although there are 6 records.