DF_FILE_LOCK_RECORD_STATUS¶

Applies to: ORAFlex SQLFlex MYSQLFlex PGFlex DB2Flex

Table locking is done during transactions to maintain atomicity. In DataFlex, this is usually done with the REREAD/UNLOCK commands. This attribute is used to get the status of a table lock. If a table is currently in a REREAD, or locked, then the attribute will return true. Otherwise, it returns false. It is a read-only attribute so no setting can be done.

Syntax

Get_Attribute DF_FILE_LOCK_RECORD_STATUS of {FileNumber} to {variable}

Parameter

Description

FileNumber

Number of the file

variable

Indicates the status of the file lock

Example

open Customer
Handle hFile
Integer bLocked

Move Customer.File_Number to hFile

Get_Attribute DF_FILE_LOCK_RECORD_STATUS of hFile to bLocked