Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . The Guide To CA-Clippe - <b>dbrlocklist() function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DBRLOCKLIST() function
 Return an array of the current Lock List
------------------------------------------------------------------------------
 Syntax

     DBRLOCKLIST() --> aRecordLocks

 Returns

     Returns an array of the locked records in the current or aliased work
     area.

 Description

     DBRLOCKLIST() is a database function that returns a one-dimensional
     array that contains the identities of record locks active in the
     selected work area.

 Examples

     PROCEDURE PrintCurLocks()

        LOCAL aList
        LOCAL nSize
        LOCAL nCount

        aList := DBRLOCKLIST()
        nSize := LEN( aList )

        ? "Currently locked records: "
        FOR nCount := 1 TO nSize
           ?? aList[ nCount ]
           ?? SPACE( 1 )
        NEXT
        ?

        RETURN

 Status:  New

 See also:  RLOCK(), UNLOCK, DBRLOCK(), DBRUNLOCK()

See Also: RLOCK() UNLOCK DBRLOCK() DBRUNLOCK()

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