Subject Re: [IBO] BufferEof never comes to TRUE if ib_dataset.next method is also used in loop
Author Geoff Worboys
...
> BufferEOF never comes to 'TRUE' state.. When I remove
> 'IBO_Query.Next' it works as expected.

> Is it as designed or a bug?

Perhaps neither, more something not specifically supported. Both
Next and BufferNext will impact the various internal buffer states.
The Buffer* operations are designed to operate and still keep the
currentrow situation valid. I am not certain that movements in
the current row are designed to keep all the Buffer* attributes
valid. Hopefully Jason will respond as to whether he expects your
code to work or not (if so then he may want you to send a demo of
the problem).

(You could also experiment with reversing the order of your
calls. Try Next and then BufferNext.)

What I am tryng to work out, is why you are using BufferNext at all?

You obviously already know that you must use Next in order for the
detail datasets to syncrhonise. So what is the benefit of also
moving the BufferNext?


--
Geoff Worboys
Telesis Computing