PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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
HUnlockRecNum (Function)
In French: HDébloqueNumEnr
ODBCOLE DBNot available with these kinds of connection
Unlocks a record that was locked by:
  • HLockRecNum,
  • a read function used with a locking parameter (for example, HRead used with the hLockWrite or hLockReadWrite constant)
Note: HUnlockRecNum cannot be used to unlock a record locked by another application.
Windows Mobile This function can be used with HFSQL Client/Server data files or with data files handled by Native Accesses. This function is not available for HFSQL Mobile.
Versions 16 and later
WINDEVJava This function is now available for the Java applications.
Java This function is available for the 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 the Java applications.
Java This function is available for the HFSQL data files only. It is not available for the data files accessed by JDBC.
WINDEVJava This function is now available for the Java applications.
Java This function is available for the 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 the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the 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 the Android applications (for the 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 the Android applications (for the 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 the Android applications (for the 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.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Example
// Lock
HLockRecNum(CUSTOMER, hCurrentRecNum, hLockReadWrite)
// Modify the record
...
// Unlock
HUnlockRecNum(CUSTOMER, hCurrentRecNum)
Syntax
<Result> = HUnlockRecNum([<File Name> [, <Record Number>]])
<Result>: Boolean
  • True if the record was unlocked,
  • False if a problem occurred. HError is used to identify the error.
<File Name>: Optional character string (with or without quotes)
Name of data file used.
If this name is not specified, HUnlockRecNum handles the last data file used by the last function for HFSQL management (starting with the letter H).
<Record Number>: Optional integer
Number of the record to unlock.
If this number is not specified (equal to 0 or to the hCurrentRecNum constant), HUnlockRecNum handles the current record.
Native Accesses HUnlockRecNum only unlocks the current record. You cannot specify a record number other than the current one (to specify the current record number, use the hCurrentRecNum constant).
Remarks
HUnlockRecNum has no effect if:
  • The data file is in single-user mode (see HMode).
  • The record is not locked.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Windows Mobile wp230hf.dll
Java wd230java.jar
Linux wd230hf.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment