Itai,
>If DbSort() is done in memory, I have no other choice but to index and
>then copy all filtered records.
DbSort() creates temp files, if necessary, so I can sort a database with
over 1 million records that is about 1.8 GB in size (FOXDBE) without any
runtime errors. And DbSort() is about 5 to 6 times as fast as creating an
Index and then using DbExport() to copy the database.
But all Memo fields will be empty after DbSort()! The documentation states
that: "Memo fields cannot be sorted." -- but it doesn't say that this means
that Memo fields can't be copied.
So, if you need Memo fields in the sorted database, DbSort() can't be used,
but you shouldn't get an error or crash, even with a large database.
And of course, what version of Xbase++, OS, DBE, etc. are you using and what
kind of error (or crash) do you get and what does your code look like?
Just wondering...
Andreas
Andreas Gehrs-Pahl
Absolute Software, LLC
phone: (989) 723-9927
email: Andreas@AbsoluteSoftwareLLC.com
web: http://www.AbsoluteSoftwareLLC.com
[F]: https://www.facebook.com/AbsoluteSoftwareLLC