Patch level : 2.2 82
Files correlati : ca0.exe Ricompilazione Demo : [ ] Commento : Corretta la funzione key_complete nel caso l'ultimo campo della chiave non sia numerico git-svn-id: svn://10.65.10.50/trunk@12969 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f604712a95
commit
f0c56484f9
@ -7,10 +7,15 @@ bool TMultiple_rectype::key_complete() const
|
||||
const KeyDes& kd = recd.Ky[0];
|
||||
const int nf = kd.FieldSeq[kd.NkFields - 1] % MaxFields; //posizione ultimo campo chiave principale
|
||||
const RecFieldDes& rf = recd.Fd[nf];
|
||||
const int type = rf.TypeF;
|
||||
|
||||
const long num = get_long(rf.Name);
|
||||
|
||||
return num > 0;
|
||||
if (type == _intfld || type == _longfld ||
|
||||
type == _intzerofld || type == _longzerofld)
|
||||
{
|
||||
const long num = get_long(rf.Name);
|
||||
return num > 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//assegna il prossimo numero all'ultimo campo della chiave principale della testata
|
||||
|
Loading…
x
Reference in New Issue
Block a user