Corretti errori MI4019-MI4030-MI4021-MI4022

Implementata ricerca approssimativa sui cursori


git-svn-id: svn://10.65.10.50/trunk@534 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1994-11-04 11:07:40 +00:00
parent e8627003c7
commit 64b0aee134
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
// $Id: maskfld.cpp,v 1.40 1994-11-04 08:17:15 alex Exp $ // $Id: maskfld.cpp,v 1.41 1994-11-04 11:07:16 alex Exp $
#include <xvt.h> #include <xvt.h>
#include <applicat.h> #include <applicat.h>
@ -1382,7 +1382,7 @@ TToken_string& TBrowse::create_siblings(TToken_string& siblings)
KEY TBrowse::run() KEY TBrowse::run()
{ {
do_input(TRUE); do_input(TRUE);
_cursor->read(); _cursor->read(_isgteq);
TString80 caption; TString80 caption;
const TLocalisamfile& f = _cursor->file(); const TLocalisamfile& f = _cursor->file();

View File

@ -1,4 +1,4 @@
// $Id: relation.cpp,v 1.20 1994-10-20 17:49:02 guy Exp $ // $Id: relation.cpp,v 1.21 1994-11-04 11:07:40 alex Exp $
// relation.cpp // relation.cpp
// fv 12/8/93 // fv 12/8/93
// relation class for isam files // relation class for isam files
@ -911,7 +911,12 @@ TRecnotype TCursor::read(TIsamop op, TReclock lockop, TDate& atdate)
int pagecnt; int pagecnt;
file().setkey(_nkey); file().setkey(_nkey);
const bool approx = (op == _isgteq);
_if->file().read(op, lockop, atdate); _if->file().read(op, lockop, atdate);
if (approx)
while (!ok())
_if->file().next();
const TRecnotype curpos = file().recno(); const TRecnotype curpos = file().recno();
if (changed()) if (changed())
@ -934,6 +939,7 @@ TRecnotype TCursor::read(TIsamop op, TReclock lockop, TDate& atdate)
{ {
_pos = _totrec - max + i; _pos = _totrec - max + i;
break; break;
} }
} }
if (_pos == -1) _pos = 0; if (_pos == -1) _pos = 0;