Subject Re: [IBO] bug with eof ?
Author deccico
Thanks for the answers, I only have a IB_Ledger attached to the IB_Query,

I need to disable it?



--- In IBObjects@yahoogroups.com, "Jason Wharton" <jwharton@i...> wrote:
> Please trace your code and find out what is causing it to stay at
the last
> record instead of allowing Eof to be true. Perhaps there is an event or
> control attached.
>
> As Jerry pointed out, the TDataset allows the last record to appear
as being
> current (as far as data controls presentation goes) even when the
dataset
> has the Eof property flagged as true. In IBO you only get Eof true
when you
> are fully scrolled off the last record, which means the visual controls
> would need some way to show the record pointer being at Eof, rather
than the
> last record.
>
> This is the difference between IBO native and IBO TDataset.
>
> I think your issue is different than Jerry's. Your's most likely
has to do
> with events or property settings keeping it from scrolling to the
Eof spot.
>
> Jason Wharton
>
> -----Original Message-----
> From: deccico [mailto:deccico@g...]
> Sent: Tuesday, August 31, 2004 6:30 AM
> To: IBObjects@yahoogroups.com
> Subject: [IBO] bug with eof ?
>
>
> Hi I have this simple code and the problem is that it will never found
> the Eof condition.
>
> TIB_Query *tbl = static_cast <TIB_Query*> (dmUsers->queUsers);
>
> if (!tbl->Prepared) tbl->Prepare();
> tbl->First();
> while (!tbl->Eof){
> //some action
> tbl->Next();
> }
>
> the SQL of the IB_Query has the following:
>
> SELECT ID
> , ID_USUARIO
> , HUELLA
> , NOTAS
> FROM USUARIO_HUELLAS
>
>
> What I am doing wrong?
>
> please give me any advice
>
> best regards
>
>
> Adrián