次の方法で共有


ISRLOCKED( ) Function

Returns the record lock status.

ISRLOCKED([nRecordNumber, [nWorkArea | cTableAlias]])

Return Value

Logical

Parameters

  • nRecordNumber
    Specifies the number of the record for which the lock status is returned. If nRecordNumber is omitted, the record lock status is returned for the current record.

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

  • cTableAlias
    Specifies the alias of the table for which the record lock status is returned.

Remarks

ISRLOCKED( ) returns a logical true (.T.) if the record is locked by the current application; otherwise a logical false (.F.) is returned.

Note

ISRLOCKED( ) only returns .T. in the data session that applied the record lock.

See Also

Reference

FLOCK( ) Function

ISFLOCKED( ) Function

LOCK( ) Function

RLOCK( ) Function

SYS(2011) - Current Lock Status

Other Resources

Functions

Language Reference (Visual FoxPro)