Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

CHK_DBF( cDbfname[, lMsg ] )

Purpose

Check the header of a data file to determine its integrity prior to
any USE command. In multi-user mode, the file is opened in
shared mode in order to check its header.

Arguments

     cDbfname -- name of the .DBF

     lMsg -- if passed, logical indicating whether to show error
                 messages; defaults to .T. (ie. show messages)

Setup

This function is called by DB_OPEN() just prior to its USE statement. It is
not necessary that the file being checked have the DBF extension, so long
as the entire filename is stored in the dictionary or passed directly to
DB_OPEN(). If you call CHK_DBF() directly, then the full filename
including extension must be specified.

Example

     IF !CHK_DBF( "CUSTOMER.DBF" )

        QUITPROG()

     ENDIF

Returns

.T. if the file header seems sound.

Side Effects

If the .DBF file and the associated .DBT file (if there are memo fields )
do not exist or the header is corrupt, a message may be displayed informing
the user of the problem.

Artful Calls

FILEOPEN, POP_MSG

Source Files

AA_DBOPN.PRG, AM_DBOPN.PRG

See Also: DB_OPEN() CHK_NTX()

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