summaryrefslogtreecommitdiff
path: root/src/utils/xb_pack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/xb_pack.cpp')
-rwxr-xr-xsrc/utils/xb_pack.cpp13
1 files changed, 8 insertions, 5 deletions
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;