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 v5.5 - ax_i_indexname() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 AX_I_IndexName()
 Get name of index file being indexed or reindexed
------------------------------------------------------------------------------

 Syntax

     AX_I_IndexName() -> charstring

 Returns

     Returns the filename of the current index file being indexed or
     reindexed.  If no index or reindex is being done, it returns "".

 Description

     AX_I_IndexName() identifies the index file name currently being
     indexed or reindexed.  This function is most helpful in a UDF
     specified with the EVAL clause of INDEX or REINDEX.  The current
     index in use can be displayed to show progress toward index build
     completion.

 Example

     USE test VIA "DBFCDXAX"                // Open TEST.DBF and TEST.CDX

     REINDEX EVAL ShowIt() EVERY 10

     FUNC ShowIt()

        // Display the appropriate message
        ? IF( AX_IsReindex(), "Reindexing", "Indexing" )

        // Display the index file name and tag name.
        ? AX_I_IndexName()    // Displays "TEST.CDX"
        ?

        // Show how many keys have been included.
        @ ROW(), 1 SAY AX_KeysIncluded()

     RETURN .T.


See Also: AX_I_TagName() AX_IndexName() AX_IsReindex()

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