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_DICT( cDict_file[, lQuick[, lKillntxs ]] )

Purpose

Open all data and index files listed in an application dictionary.
In single-user mode, or in multi-user mode if no other user has the
dictionary open, the data and index header integrity are checked;
missing or incorrect indexes are remade. If another user has the dictionary
open, CHK_DICT() cannot remake indexes (since they're in use,
they cannot be remade, so we accept them as is).

Arguments

     cDict_file -- if passed, dictionary name, else "DICT"

     lQuick -- if passed and .T., skip detailed .DBF check, defaults to
                   .F.

     lKillntxs -- if passed and .T., force reindexing; defaults to .F.

Setup

The dictionary file must be available.

Example

     IF CHK_DICT( "AAI_DICT" )

          POP_MSG( "AAI successfully opened" )

     ELSE

          POP_MSG( "AAI could not be opened" )

     ENDIF

Returns

.T. if all data files are verified and all index files are present or can
be made, else .F.

Side Effects

Makes new indexes if named indexes are missing or bad. Indexes are named
using up to the first seven letters of the filename followed by a number
corresponding to the ordinal position of the index in the list of indices
for that file. Does not check disk space before re-indexing. Fills empty
fields in DICT with defaults. Any file for whom DICT-Open_it is .T. is
left open. Others are closed after validation.

Artful Calls

DB_OPEN, DICTOPEN, IS_OPEN, STRINT, FIELDCOUNT, STAT_LINE

Source Files

AA_DICT.PRG, AM_DICT.PRG

See Also: DB_OPEN() CHK_NTX() CHK_DBF() IS_OPEN() FIELDCOUNT() DCT_MAINT()

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