C5_DBRLOCKLIST

 DBRLOCKLIST()
 Return an array of the current lock list
------------------------------------------------------------------------------
 Syntax

     DBRLOCKLIST() --> aRecordLocks

 Returns

     DBRLOCKLIST() 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

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



One response to “C5_DBRLOCKLIST

  1. Pingback: C5DG-3 RDD Reference | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.