Subject | bug with eof ? |
---|---|
Author | deccico |
Post date | 2004-08-31T13:30:22Z |
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
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