ISRLOCKED()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to test if current or specified record is locked by the current process

Syntax

ISRLOCKED([<expN1> [, <expN2> | <expC>]])

See Also

ISLOCKED(), ISREADONLY(), INUSE(), LKSYS(), LOCK(), LOCKINFO(), USED()

Description

The ISRLOCKED() function returns .T. if the current record or record number <expN1> is locked by the current user, and .F. otherwise. By default it operates in the current workarea. To operate in another workarea, the number <expN2> or table alias <expC> can be specified. The ISRLOCKED() function does not determine whether the current record is locked by another user/process.

Example

? isrlocked(13,2)
.T.