PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Used to check whether a lock error occurred. This function must be used for custom management of locks and modification conflicts.
Remark: An automatic management of lock errors and modification conflicts is performed by default (except in the code of stored procedures). This assisted management of errors can be customized or disabled at any time by HOnError.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Example
// Read the first record
HReadFirst(Customer, Name)
// Lock error?
IF HErrorLock() = True THEN
Error("A lock error was detected")
END
Syntax
<Result> = HErrorLock()
<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 this reading is performed in a browse loop on an HFSQL data file, this browse 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 (in multi-user mode only)
Business / GUI classification : Business Logic
Component : wd250hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment