diff --git a/src/include/relation.cpp b/src/include/relation.cpp index 73b89b02c..ac42adaa1 100755 --- a/src/include/relation.cpp +++ b/src/include/relation.cpp @@ -1118,8 +1118,14 @@ TRecnotype TCursor::buildcursor(TRecnotype rp) const bool filtered = has_filter(); const bool simple_filter = filtered && has_simple_filter(); + // Barra di + + TString msg("Elaborazione "); + msg << relation()->lfile().name(); + TProgress_monitor pi(_if->lfile().items(), msg); + while (!DB_index_eof(fhnd)) - { + { + pi.add_status(); const char *s0 = DB_index_getkey(fhnd); if (l && (strncmp(to(), s0, l) < 0)) break; @@ -1938,6 +1944,7 @@ TRecnotype TSorted_cursor::buildcursor(TRecnotype rp) TSort sort(sizeof(El_To_Sort)); _order_expr.restart(); + while ((s=_order_expr.get()).not_empty()) { check_expr(s); // Toglie l'eventuale operatore UPPER(), in modo che l'ultimo carattere @@ -1980,8 +1987,14 @@ TRecnotype TSorted_cursor::buildcursor(TRecnotype rp) pos = DB_index_recno(handle); TCursor::pos()=-1; + // Barra di progressione + TString msg("Elaborazione "); + msg << relation()->lfile().name(); + TProgress_monitor pi(relation()->lfile().items(), msg); + while (!DB_index_eof(handle)) - { + { + pi.add_status(); const char* s0 = DB_index_getkey(handle); if (l && (strncmp(to(), s0, l) < 0)) break;