C5_INDEXEXT

 INDEXEXT()
 Return the default index extension based on the database driver currently
 linked
------------------------------------------------------------------------------
 Syntax

     INDEXEXT() --> cExtension

 Returns

     Unless you have linked another database driver, INDEXEXT() returns
     ".ntx" to indicate that the default Clipper driver is in effect.  If
     the dBASE III PLUS compatible database driver is linked, the function
     returns ".ndx".

 Description

     INDEXEXT() returns the default index file extension by determining which
     database driver is currently linked. Note that it is preferable to use
     ORDBAGEXT() than INDEXEXT().

 Notes

     .     INDEXEXT() returns the default index extension of the
        driver loaded, not the actual index file extension.  If no driver is
        loaded, ".ntx" is returned.

 Examples

     .  In this example, INDEXEXT() creates an existence test for the
        Customer index file independent of the database driver linked into
        the current program:

        USE Customer NEW
        //
        IF .NOT. FILE("Customer" + INDEXEXT())
           INDEX ON CustName TO Customer
        ENDIF

 Files   Library is CLIPPER.LIB.

See Also: INDEXKEY() INDEXORD() ORDBAGEXT()

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.