Corretto il settaggio del nome della ricerca nel caso di una tabella

git-svn-id: svn://10.65.10.50/trunk@372 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1994-10-14 17:55:57 +00:00
parent bf9e90a0c7
commit a7cfac4085

View File

@ -1,4 +1,4 @@
// $Id: maskfld.cpp,v 1.28 1994-10-11 17:36:23 guy Exp $
// $Id: maskfld.cpp,v 1.29 1994-10-14 17:55:57 alex Exp $
#include <xvt.h>
#include <applicat.h>
@ -1382,11 +1382,16 @@ KEY TBrowse::run()
TFilename name("batb");
if (f.num() == LF_TABCOM) name << '%';
name << _cursor->file().name() << ".msk";
TScanner m(name.lower());
while (m.line().left(2) != "PA"); // Find PAGE
const int apicia = m.token().find('"')+1;
const int apicic = m.token().find('"', apicia);
caption = m.token().sub(apicia, apicic);
if (fexist(name))
{
TScanner m(name.lower());
while (m.line().left(2) != "PA"); // Find PAGE
const int apicia = m.token().find('"')+1;
const int apicic = m.token().find('"', apicia);
caption = m.token().sub(apicia, apicic);
}
else
caption = f.description();
}
else
caption = f.description();