C5_DBRUNLOCK

 DBRUNLOCK()
 Release all or specified record locks
------------------------------------------------------------------------------
 Syntax

     DBRUNLOCK([<xIdentity>]) --> NIL

 Arguments

     <xIdentity> is a unique value guaranteed by the structure of the
     data file to reference a specific item in a data source (database).  In
     a .dbf <xIdentity> is the record number.  In other data formats,
     <xIdentity> is the unique primary key value.

 Returns

     DBRUNLOCK() always returns NIL.

 Description

     DBRUNLOCK() is a database function that releases the lock on <xIdentity>
     and removes it from the Lock List.  If <xIdentity> is not specified, all
     record locks are released.

 Examples

     PROCEDURE dbRUnlockRange( nLo, nHi )

        LOCAL nCounter

        // Unlock the records in the range from nLo to nHi
        FOR nCounter := nLo TO nHi
           DBRUNLOCK( nCounter )
        NEXT

        RETURN

See Also: RLOCK() DBRLOCK() DBRLOCKLIST()

 

One response to “C5_DBRUNLOCK

  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.