Hi all,
I use a database that has 148 records in it. No indexes are used at all.
If I call oDbf:GoTop() and test the RecNo()
I get recno 14 instead of 1
If I call oDbf:GoBottom() and test the RecNo()
I get recno 142 instead of 148
Can anyone tell me why this weird result.
Regards
Major flaw in TDataBase CLASS
Major flaw in TDataBase CLASS
Gilbert Vaillancourt
turbolog@videotron.ca
turbolog@videotron.ca
- Biel EA6DD
- Posts: 680
- Joined: Tue Feb 14, 2006 9:48 am
- Location: Mallorca
- Contact:
Hi Biel,
It`s true I always used set delete on. I don`t want to see deleted records anyway. But my database as no deleted records.
Made a second test: if i use Clipper dbGoTop() & dbGoBottom() everything works fine. Only if I use TDataBase problem returns.
Regard
It`s true I always used set delete on. I don`t want to see deleted records anyway. But my database as no deleted records.
Made a second test: if i use Clipper dbGoTop() & dbGoBottom() everything works fine. Only if I use TDataBase problem returns.
Regard
Gilbert Vaillancourt
turbolog@videotron.ca
turbolog@videotron.ca
- Biel EA6DD
- Posts: 680
- Joined: Tue Feb 14, 2006 9:48 am
- Location: Mallorca
- Contact:
Hi Gilbert,
Like can you see, the tDatabase is doing the same, (::nArea)->(dbGoTop()), (::Load() don't move the record pointer).
Try to execute
Check oDbf:nArea if is the correct data Area.
Code: Select all
METHOD GoTop() INLINE ( ::nArea )->( DBGoTop() ),;
If( ::lBuffer, ::Load(), )
METHOD GoBottom() INLINE ( ::nArea )->( DBGoBottom() ),;
If( ::lBuffer, ::Load(), )
Try to execute
Code: Select all
(oDbf:nArea)->(dbGoTop())
Hi Biel,
I finally found what the problem was. The database I was testing with contains special ASCII code that are in the range of 0 to 31. That was causing the problem. I did some testing with another database and everything works well.
Regards,
I finally found what the problem was. The database I was testing with contains special ASCII code that are in the range of 0 to 31. That was causing the problem. I did some testing with another database and everything works well.
Regards,
Gilbert Vaillancourt
turbolog@videotron.ca
turbolog@videotron.ca