Links are not active on this page.
 ISFLOCKED( ) Function

Returns the table lock status.

ISFLOCKED([nWorkArea | cTableAlias])

Parameters

nWorkArea

Specifies the work area number of the table for which the lock status is returned. If you omit cTableAlias and nWorkArea, the lock status is returned for the table open in the current work area.

cTableAlias

Specifies the alias of the table for which the lock status is returned. An "Alias not found" error message is generated if you specify an alias of a table that isn't open.

Expand imageReturn Value

Logical

Expand imageRemarks

ISFLOCKED( ) returns a logical true (.T.) if the table is locked; otherwise a logical false (.F.) is returned. ISFLOCKED( ) is similar to SYS(2011), but returns a logical value which does not require localization for international applications.

NoteNote

ISFLOCKED() only returns .T. at the workstation that applied the file lock.

Expand imageSee Also