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

  Syntax:   Sx_UnLock([<nRecNo | aRecArray>])

            nRecNo    = Record number of a single record to unlock
            aRecArray = Array of record numbers of records to unlock

  Returns:  NIL

  Description:  Unlocks one or more records in a shared database.

  Example:


    #include "SIXCDX.CH"

    LOCAL aRec := { 5, 20, 57, 100, 324 }  // Array of records to lock
    LOCAL nCount

    USE test SHARED                        // Open TEST.DBF
    Sx_RLock( aRec )                       // Lock all five records

    //...( Do some stuff with those five records )...

    // Make sure they're all locked
    aRec := Sx_GetLocks()                  // Get array of locked records
    FOR nCount := 1 TO Len( aRec )         // Cycle through array
      ? aRec[ nCount ]                     //  displaying each record number
    NEXT

    Sx_UnLock( 57 )                        // Unlock just record number 57
    Sx_RLock( 500 )                        // Lock record 500
    Sx_RLock( {75,80,90} )                 // Lock records 75, 80, and 90

    Sx_UnLock( {5,100,324} )               // Unlock records 5, 100, and 324
    UNLOCK                                 // Unlock all locked records


  Notes:    If no parameters are passed then all locked records are
            unlocked.  If the database if FLOCKed then the FLOCK is
            released.

            UNLOCK and UNLOCK ALL both unlock all records locked by the
            current user, as well as releasing an FLOCK.  UNLOCK is
            equivalent to Sx_UnLock() with no parameters.


See Also: Sx_GetLocks() Sx_IsLocked() Sx_RLock() Sx_ROXUnLock()

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