Patch level : 12.0 552

Files correlati     : sy
Commento            : Aggiunta lettura files per chiave

git-svn-id: svn://10.65.10.50/branches/R_10_00@24429 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
mtollari 2018-03-12 16:02:22 +00:00
parent 053317edec
commit cd7c206c7d

View File

@ -1668,10 +1668,11 @@ bool TCursor_sheet::filter_dialog()
{
TRectype rec = _cursor->curr();
const RecDes& rd = rec.rec_des();
const KeyDes& k0 = rd.Ky[0];
const int keyNum = _cursor->key();
const KeyDes& k0 = rd.Ky[keyNum - 1];
const int kfields = k0.NkFields;
TMask m(TR("Filtro"), 1, 78, kfields+5);
TMask m(TR("Filtro"), 1, 78, kfields+8);
m.add_button_tool(DLG_OK, "", TOOL_OK);
m.add_button_tool(DLG_CANCEL, "", TOOL_CANCEL);
int max_len = 0;
@ -1710,7 +1711,7 @@ bool TCursor_sheet::filter_dialog()
max_len += 10;
}
for (int i = 0; i < kfields-1; i++)
for (int i = 0; i < kfields; i++)
{
const int nf = k0.FieldSeq[i] % MaxFields;
const char * fname = rec.fieldname(nf);