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

  Syntax:   Sx_IndexCount()

  Returns:  A numeric value containing the number of index files open in
            the current workarea.

  Description:  Returns the number of index files that are open for the
                database in the current workarea.  This number includes the
                structural .CDX, if one exists.

    NOTE:  This function is NOT supported under SIXNTX.

  Example:

    #include "SIXCDX.CH"

    // Assume that TEST.DBF also has a structural index (TEST.CDX)

    use TEST via "SIXCDX"       // Open TEST.DBF and TEST.CDX
    ? Sx_IndexCount()           // Returns 1

    SET INDEX TO foo, bar       // Also open FOO.IDX and BAR.IDX
    ? Sx_IndexCount()           // Returns 3

    SET INDEX TO                // Close all indexes except TEST.CDX
    ? Sx_IndexCount()           // Returns 1

    SET INDEX TO foo            // Open FOO.IDX
    ? Sx_IndexCount()           // Returns 2

    SET INDEX TO bar ADDITIVE   // Open BAR.IDX
    ? Sx_IndexCount()           // Returns 3



See Also: Sx_KeyCount()

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