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_keysincluded():</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Sx_KeysIncluded():

  Syntax:    Sx_KeysIncluded()

  Returns:   <numeric> Number of keys that have been included in the
                  current index or tag so far

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

    NOTE:  This function is NOT supported under SIXNTX.

  Example:

    #include "SIXCDX.CH"

    USE TEST VIA "SIXCDX"             // TEST.CDX 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_IndexName() Sx_I_TagName() Sx_KeyCount() Sx_KeyNo()

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