See the following topic in help:
"Table File Structure (.dbc, .dbf, .frx, .lbx, .mnx, .pjx, .scx, .vcx)"
it describes the header of a dbf file even if that extension is not used. You can parse it to determine if it is a dbf and how many records are in it.
>Ok, here is the situation. I have a security measure on my program that require the existence of a file to happen. A few time ago, somebody smart enough could just remove the file and the security would fail and allow him to go on. Now, I put codes so that if the file does not exist , there is no way he can enter the program. But The problem is that if somebody's smart enough, he will create a file with the same name but junk in it. FoxPro will issue several error messages that the file is not a table, but by just clicking ignore, he will eventually be able to get it. Is there any way to check if the specific file is of a certain type. I can't really check the immediate content of the file since it`s not always the same for everybody and the content is encrypted (I do not have the key the decrypt it). For example, if there was a way to know the exact size of the size, or if there is a record in it( there is always only one record in it).
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only