>Hi,
>
>I've been had some problems with this question: "How to know if a DBF File is encrypted or not..."
>
>I have some code that I can test if the file is encrypted or not... I think get the error code (not a table) and try to register(), but if I have some file with hearder's corruption? I will receive this error message, but the file is not register, he is just corrupted...
>
>Do you have some code (an example) to make the things easier for me?
Just an idea... if you knew a string in the table - for example there is a "Name" field and you know one of the records is "Rodolfo" - then you could maybe use FILETOSTR() then search for "Rodolfo" in the string. If it was present - even if the table is (mildly) corrupted - the file is not encrypted.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up