From 517ad9d4b6eae320b708d03a9340a22893b0cab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 29 Jan 2023 15:45:51 +0100 Subject: New upstream version 4.0.3 --- src/utils/xb_pack.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/utils/xb_pack.cpp') diff --git a/src/utils/xb_pack.cpp b/src/utils/xb_pack.cpp index ba61837..ccec5a3 100755 --- a/src/utils/xb_pack.cpp +++ b/src/utils/xb_pack.cpp @@ -22,11 +22,7 @@ int main(int ac,char** av) if (ac <= 1) { std::cout << "\nUsage: xb_pack filename...\n" - "\nThis program does not automatically reindex any NDX indexes." - "\nUse the reindex program to reindex any indexes associated" - "\nwith the database, or build your own program which executes " - "\nthe Pack() method after opening all the index files " - "\nassociated with the database.\n\n"; + "\nThis program does automatically reindexes any open NDX or MDX indexes."; return 1; } @@ -44,6 +40,13 @@ int main(int ac,char** av) std::cout << " Return Code = " << iRc << std::endl; } + #ifdef XB_INDEX_SUPPORT + if(( iRc = MyFile->Reindex( 1 )) != XB_NO_ERROR ) { + std::cout << "\nError reindexing DBF database ==> " << av[1] << std::endl; + std::cout << " Return Code = " << iRc << std::endl; + } + #endif // XB_INDEX_SUPPORT + MyFile->Close(); delete MyFile; -- cgit v1.2.3