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_NTX( cIndex_name, cIndex_key, lUnique, lMake )

Purpose

Determine the integrity of a Clipper index file header, remake if missing,
if corrupted, or if the index key does not match cIndex_key.

Arguments

     cIndex_name -- the name of the index file to check (minus the .NTX
                        extension)

     cIndex_key -- the index key expression

     lUnique -- a logical indicating whether UNIQUE should be set on
                    when the index is written to

     lMake -- a logical indicating whether to force re-indexing

Setup

This function is usually called by DB_OPEN(), which passes
the required parameters directly.

Example

     USE CUSTOMER
     ? CHK_NTX( "CUSTOME3", "ACCOUNT_NO", .F., .F. )
     ? INDEXKEY( 0 )

Returns

.T. if the index is found and its structure corresponds to the specified
index key and unique flag, or if the index is rebuilt, otherwise .F.

Side Effects

The index may be rebuilt. If so, a message is displayed on line 24.

Artful Calls

STAT_LINE, SET_ORDER, GET_ORDER, INDEX_ON

Source Files

AA_DBOPN.PRG, AM_DBOPN.PRG

See Also: CHK_DBF() CHK_DICT() DB_OPEN() IS_UNIQUE()

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