RDD

DbRUnlock()

Release record locks

Syntax

Signature
DbRUnlock( [xIdentity] ) --> NIL

Arguments

xIdentity

Optional record identity. Without it, all record locks are released.

Return value

NIL.

Description

DbRUnlock() releases the lock for xIdentity, or all record locks when the argument is omitted. It leaves the current area and record pointer unchanged and does not alter field values.

Notes

The area must be open and the identity must be positive when supplied. Invalid identities or RDD unlock failures raise an error. DbRUnlock() is selective; DbUnlock() always releases every lock in the current area.

Example

DbRunlock.prg
PROCEDURE Main()

   DbRUnlock()
   QOut( "DbRUnlock: OK" )

   RETURN

Output

See also