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
HUnlockRecNum (Function)
In french: HDébloqueNumEnr
ODBCOLE DBNot available with these kinds of connection
Unlocks a record that was locked by:
  • the HLockRecNum function,
  • or a read function used with a blocking parameter (e.g. function HRead used with the constant hWriteblock or the constant hLockReadWrite).
Remark: The HUnlockRecNum function does not unlock an Record blocked by another application.
Versions 16 and later
WINDEVJava This function is now available for Java applications.
Java This function is available for HFSQL data files only. It is not available for the data files accessed by JDBC.
New in version 16
WINDEVJava This function is now available for Java applications.
Java This function is available for HFSQL data files only. It is not available for the data files accessed by JDBC.
WINDEVJava This function is now available for Java applications.
Java This function is available for HFSQL data files only. It is not available for the data files accessed by JDBC.
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
// Blocage
HLockRecNum(CLIENT, hRecNumCurrent, hLockReadWrite)
// Modification de l'enregistrement
...
// Déblocage
HUnlockRecNum(CLIENT, hRecNumCurrent)
Syntax
<Result> = HUnlockRecNum([<Data file> [, <Record number>]])
<Result>: Boolean
  • True if the record was unlocked,
  • False if a problem occurred. HError is used to identify the error.
<Data file>: Optional character string
Name of the data file used.
If this name is not specified, HUnlockRecNum will use the last data file used by the last HFSQL management function (function starting with "H").
<Record number>: Optional integer
Number of the record to unlock.
If this number is not specified (equal to 0 or to the constant hRecNumCurrent), the function HUnlockRecNum will handle the current Record.
Native Connectors (Native Accesses) The HUnlockRecNum function only unlocks the current Record. You cannot specify a record number other than the current one (to specify the current record number, use the hRecNumCurrent constant).
Remarks
HUnlockRecNum has no effect if:
  • The data file is in single-user mode (see HMode).
  • The record is not locked.
Component: wd270hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment