PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
Versions 16 and later
Java This function is now available for Java applications.
New in version 16
Java This function is now available for Java applications.
Java This function is now available for Java applications.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications (for HFSQL data files).
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications (for HFSQL data files).
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications (for HFSQL data files).
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Example
// Lecture du premier enregistrement
HReadFirst(Client, Nom)
// Erreur de blocage?
IF HErrorLock() = True THEN
Error("Une erreur de blocage a été détectée")
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 file or the record before giving control back to the program (multi-user mode only).
  • This function replaces the HDéjàBloqué function present in WINDEV 5.5.
Business / UI classification: Business Logic
Component: wd270hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment