diff --git a/cg/cg4400.cpp b/cg/cg4400.cpp index dedf2ee06..4aa5bd54d 100755 --- a/cg/cg4400.cpp +++ b/cg/cg4400.cpp @@ -1058,7 +1058,7 @@ bool CG4400_application::user_create() _rel->add(LF_CAUSALI,"CODCAUS=CODCAUS",1,LF_MOV); _rel->add(LF_RMOVIVA,"NUMREG=NUMREG",1,LF_MOV); - _cur = new TCursor(_rel, "", 2); + _cur = new TSorted_cursor(_rel, "DATAREG|PROTIVA|NUMREG","", 2); _ditte = new TArray_sheet(-1, -1, 0, 0, "Selezione Ditte", "@1|Cod.@5R|Ragione Sociale@50|Vers."); diff --git a/cg/cg4400.h b/cg/cg4400.h index c70d47e9e..bd76033e9 100755 --- a/cg/cg4400.h +++ b/cg/cg4400.h @@ -37,7 +37,7 @@ enum messaggio { class CG4400_application : public TPrintapp { - TCursor * _cur; + TSorted_cursor * _cur; TRelation *_rel, *_nditte; TLocalisamfile *_clifo, *_occas, *_tab, *_tabcom, *_com, *_anag, *_unloc, *_attiv, *_indlib; TTable *_tabreg, *_tablbu, *_tablim, *_tabpim, *_tablia, *_tabiva;