Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SIx Driver RDD v3.00 - Reference Guide - <b>sx_i_indexname():</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Sx_I_IndexName():

  Syntax:  Sx_I_IndexName()

  Returns:   <char> File name of current index file being indexed or
                    reindexed,  "" if no index or reindex occurring.

  Description:    This function returns the name of the index file currently
                  being indexed or reindexed.  This function would be used
                  in a UDF (specified with the OPTION clause of INDEX or
                  REINDEX) to identify which index file is being indexed or
                  reindexed.

    NOTE:  This function is NOT supported under SIXNTX.

  Example:

    #include "SIXNSX.CH"

    USE TEST VIA "SIXNSX"             // TEST.NSX opened automatically
    REINDEX OPTION ShowIt() STEP 100

    FUNC ShowIt()

      // Bof() is .T. on first call to OPTION UDF.  Use this for setup.
      IF Bof()
          // Display the appropriate message
          ? iif(Sx_IsReindex(), "Reindexing ", "Indexing ")

          // Display the index file name and tag name.
          ? Sx_I_IndexName() + " : " + Sx_I_TagName()
          ?
          Return(NIL)
      ENDIF

      // Show how many keys have been included so far
      @ ROW(),1 SAY Sx_KeysIncluded()

    Return(NIL)



See Also: Sx_I_TagName() Sx_IndexName() OrdName() Sx_IsReindex()

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