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

  Syntax:   Sx_Chill([[nTagNo | cTagName,] nOrder | cIndexName])

            nTagNo     = Position of tag within compound index file
            cTagName   = Name of the tag
            nOrder     = Position of index in list of indexes
            nIndexName = Name of the index

  Returns:  <logical> .T. if successful, .F. if an error occurred.

  Description:  This function converts a "Full Update" index or tag to a
                "Changes Only" tag or index.  After this conversion only
                changes made to records with keys currently in the tag or
                index are updated thereafter.  New records are NOT
                automatically added to the tag or index.

    NOTE:  This function is NOT supported under SIXNTX.

  Example:

    // Assume that TEST.DBF also has a structural index (TEST.CDX) and
    // SPECIAL.IDX created empty, on SALARY

    #include "SIXCDX.CH"

    USE test VIA "SIXCDX"      // Opens TEST.DBF and TEST.CDX
    SET INDEX TO Special       // Open SPECIAL.IDX,  Note TEST.CDX
                               //  is moved to index order position 2

    AddCustomer()              // Add customer

    IF RecNo() >= 100          // Chill Special offer index after first
       Sx_Chill(1)             // one-hundred Customers
    ENDIF

    //---------------------------------//
    FUNC AddCustomer()

      dbAppend()               // Add a new record
      //...                    // Do some "customer adding" stuff...

    Return(NIL)



See Also: Sx_Freeze() Sx_Thermometer() Sx_Warm()

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