|
|
|
|
|
HErrorLock (Function) In french: HErreurBlocage
Not available with this kind of connection
Used to check whether a lock error occurred. This function must be used for custom management of locks and modification conflicts. // Read the first record HReadFirst(Customer, Name) // Lock error? IF HErrorLock() = True THEN Error("A lock error was detected") END
Syntax <Result>: Boolean - True if a lock error occurred,
- False otherwise (no error).
Remarks - No automatic management of locks is available for the Memo or Binary Memo items.
- Once a locked record was read, no read operation is performed on the data file:
- HErrorLock returns True.
- HOut returns True.
Therefore, if the read operation is performed while looping through an HFSQL data file, the iteration is interrupted. The H.NbRetry variable indicates the number of attempts to lock the data file or record before giving control back to the program (only in multi-user mode).
- This function replaces HIsLocked, which is kept for compatibility with WINDEV 5.5.
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|