Difference between revisions of "ISRLOCKED()"

From Lianjapedia
Jump to: navigation, search
(Created page with '// ISRLOCKED([nRecordNumber, [nWorkArea | cTableAlias]])')
 
Line 1: Line 1:
// ISRLOCKED([nRecordNumber, [nWorkArea | cTableAlias]])
+
==Purpose==
 +
Function to test if current or specified record is locked by the current process
 +
 
 +
==Syntax==
 +
ISRLOCKED([<expN1> [, <expN2> | <expC>]])
 +
 
 +
==See Also==
 +
[[ISLOCKED()]], [[ISREADONLY()]], [[ISUSED()]], [[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==
 +
<code lang="recital">
 +
? isrlocked(13,2)
 +
.T.
 +
</code>
 +
 
 +
[[Category:Documentation]]
 +
[[Category:Functions]]
 +
[[Category:Manual Locking]]
 +
[[Category:Manual Locking Functions]]

Revision as of 12:40, 14 November 2012

Purpose

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

Syntax

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

See Also

ISLOCKED(), ISREADONLY(), ISUSED(), 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.