Subject RE: [IBO] bug with eof ?
Author Jerry Sands
If you used a TIBOQuery instead of TIB_Query (or a TQuery for that matter)
your code will work just fine. For some reason the TIB_Query handles EOF
differently. I have communicated with Jason about this the past few weeks.
If there is nothing wrong with the way TIB_Query works then there must be
something wrong with the way TIB_Query or TQuery works because the behavior
is different.

Jerry Sands

-----Original Message-----
From:
sentto-402930-32530-1093959235-jsands=gofast.net@...
[mailto:sentto-402930-32530-1093959235-jsands=gofast.net@...
o.com]On Behalf Of deccico
Sent: Tuesday, August 31, 2004 8: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




___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
Yahoo! Groups Links