Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Advantage CA-Clipper Guide v6.11 - ax_keysincluded() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 AX_KeysIncluded()
 Determine number of keys included in the index
------------------------------------------------------------------------------

 Syntax

     AX_KeysIncluded() -> numeric

 Returns

     Returns a numeric value representing the number of keys included in
     the current index or tag so far, as it is being created or reindexed.

 Description

     AX_KeysIncluded() determines the number of keys that have been
     included in the current index or tag during the indexing or reindexing
     process.  This function is used in a UDF, specified with the EVAL
     clause of INDEX or REINDEX, to identify how many records have made it
     into the index.  It is especially useful when creating or reindexing
     a filtered index.

 Example

     USE TEST VIA "DBFCDXAX"            // TEST.CDX opened automatically
     REINDEX EVAL ShowIt() EVERY 100

     FUNC ShowIt()

        // Display the index file and tag name.
        ? "Reindexing " + AX_I_IndexName() + " : " + AX_I_TagName()
        ?
        // Show how many keys have been included.
        @ ROW(), 1 SAY AX_KeysIncluded()

     RETURN .T.


See Also: AX_I_IndexName() AX_I_TagName()

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