Patch level : 4.0 914
Files correlati : ba7.exe cg2.exe Ricompilazione Demo : [ ] Commento : Aggiunto il file relations.ini da piazzare in recdesc che contiene le relazioni tr i file. Uyilizzato nel postino. git-svn-id: svn://10.65.10.50/trunk@16363 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a916acb2f1
commit
d203edbc08
@ -9,6 +9,7 @@
|
|||||||
#include <golem.h>
|
#include <golem.h>
|
||||||
#include <netsock.h>
|
#include <netsock.h>
|
||||||
#include <recarray.h>
|
#include <recarray.h>
|
||||||
|
#include <relation.h>
|
||||||
#include <sheet.h>
|
#include <sheet.h>
|
||||||
#include <tabutil.h>
|
#include <tabutil.h>
|
||||||
#include <utility.h>
|
#include <utility.h>
|
||||||
@ -433,14 +434,29 @@ TFilter_expr::TFilter_expr(TAutomask& m, int logicnum, const char* expr)
|
|||||||
logicnum = LF_TABCOM; // Niente errori fatali, se possibile
|
logicnum = LF_TABCOM; // Niente errori fatali, se possibile
|
||||||
|
|
||||||
const TRectype rec(logicnum);
|
const TRectype rec(logicnum);
|
||||||
for (int i = 0; i < numvar(); i++) if (!rec.exist(varname(i)))
|
|
||||||
{
|
for (int i = 0; i < numvar(); i++)
|
||||||
_error = 883;
|
{
|
||||||
TString msg;
|
const TFixed_string name(varname(i));
|
||||||
msg.format(FR("Il campo %s non appartiene al file %d"), varname(i), logicnum);
|
int num = logicnum;
|
||||||
print_error(msg);
|
bool ok = rec.exist(name);
|
||||||
break;
|
|
||||||
}
|
if (!ok)
|
||||||
|
{
|
||||||
|
const TFieldref f(name, 0);
|
||||||
|
int num = table2logic(f.id());
|
||||||
|
const TRectype join(num);
|
||||||
|
ok = join.exist(f.name());
|
||||||
|
}
|
||||||
|
if (!ok)
|
||||||
|
{
|
||||||
|
_error = 883;
|
||||||
|
TString msg;
|
||||||
|
msg.format(FR("Il campo %s non appartiene al file %d"), varname(i), logicnum);
|
||||||
|
print_error(msg);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user