# DBUNLOCKALL()

Unlocks all records and releases all file locks in all work areas.

Syntax

  DBUNLOCKALL() --> NIL

Returns

  DBUNLOCKALL() always returns NIL.

Description

  This function will remove all file and record locks in all work area.

Examples

          nId:=10
          USE Tests INDEX TestId NEW
          USE Tests1 INDEX Tests NEW
          IF TestId->(DBSEEK(nId))
             IF TestId->(RLOCK())
                DBDELETE()
             ELSE
                DBUNLOCK()
             ENDIF
          ELSE
             DBUNLOCKALL()
          ENDIF
          USE

Status

  Ready

Compliance

  This function is CA Clipper compliant

Files

  Library is rdd

See Also

- DBUNLOCK()
- FLOCK()
- RLOCK()