xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

IsLocked()

Checks if a record is locked.

Syntax

IsLocked( [<nRecno>] ) --> lIsLocked

Arguments

<nRecno>
This is an optional numeric value identifying the record number of the record to test. It defaults to Recno(), which is the record number of the current record.

Return

The function returns .T. (true) when the record with the record number <nRecno> is currently locked by this process, otherwise .F. (false) is returned.

Description

IsLocked() tests if a database record is currently locked for write access by this process. It cannot detect, if a record lock is set by another process active on a different workstation.

Info

See also:DbRLock(), DbRLockList(), DbUnlock(), NetRecLock()
Category: Network functions , Screen functions , xHarbour extensions
Source:rtl\ttable.prg
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe