Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfisdbf()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfIsDBF()
Tests if a file is a database file
------------------------------------------------------------------------------
Syntax:

     dfIsDBF( <cFile> ) --> lDbf

Parameters:

     <cFile>    File to test.

Returns:

     <lDbf> Is .T. if the file is a database file.

Description:

     Tests if a file is a database file. The test consists in verifying the
     DBF extension, and verifying the first byte of the file, which must be
     03h (if there isn't a DBT file) or 83h (if there is a DBT file).

Example:

     IF dfIsDBF( "Clients.dbf" )    // test
        USE clients NEW             // open
        // ddUse( "Clients" )       // alternative open
     ELSE
        dbMsgErr("File Corrupted") //  error
     END

See also:

     ddGenDbf(), ddUse()

See Also: ddGenDbf() ddUse()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson