RAD function: locks

A RAD function that returns an array of structures containing information about the locks used to lock a database for an update or the locks set by RAD applications using a locked command panel.

Function

locks

Format

locks()

Factors

Each element of the array contains:

  • lock time
  • process id
  • terminal id
  • operator name
  • resource name (name of the lock)
  • number
  • exclusive
  • locked
  • breakable

Example

locks()

Returns the following:

{{[‘12/26/96 16:01:07’, 20212, “SYSTEM”, “marquee”, “agent:marquee”,
0, false, true, false]}
{[“01/02/97 11:26:08”, 22699, “Windows 32”, “falcon”, “AG/pm.main”, 0, true, true,
false]}}