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

  Syntax:    Sx_ClrScope([nWhich])

           nWhich = Value identifying which scope value to clear
                    (0 = TOP, 1 = BOTTOM)

  Returns:  NIL

  Description:  This function clears the specified scope value for the
                current tag or index.  nWhich is used to identify which
                value to clear.

                     0 = SCOPETOP     (default)
                     1 = SCOPEBOTTOM

  NOTE:  This function is NOT supported under SIXNTX.

  Example:

    #include "SIXCDX.CH"

    USE test VIA "SIXCDX"       // Open TEST.DBF
    INDEX ON state TAG state    // Create an index on the STATE field

    CLEAR
    WAIT "First we'll browse the database without a SCOPE set..."
    Browse()

    CLEAR
    ? "Now we'll set the top SCOPE value to 'AZ' and the bottom SCOPE value"
    ? "to 'CA' to limit the range of visible records by STATE..."
    Inkey(0)

    Sx_SetScope( 0, "AZ" )      // Sets the SCOPETOP to "AZ"
    Sx_SetScope( 1, "CA" )      // Sets the SCOPETOP to "CA"
    Browse()                    // Browse all records w/ states from AZ-CA

    CLEAR
    WAIT "Now we'll clear the SCOPE condition..."
    Sx_ClrScope(0)              // Clear SCOPETOP
    Sx_ClrScope(1)              // Clear SCOPEBOTTOM
    Browse()

  NOTE: The SET SCOPE command (with no parameters) will clear both the
        SCOPETOP and SCOPEBOTTOM values.



See Also: Sx_SetScope() SET SCOPE SET SCOPETOP / SET SCOPEBOTTOM CLEAR SCOPE

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