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
HUnlockFile (Function)
In French: HDébloqueFichier
ODBCOLE DBNot available with these kinds of connection
Unlocks the records of a data file:
  • locked by HLockFile.
  • individually locked by a locking read function.
The data file can also be unlocked by closing it (HClose).
Note: HUnlockFile cannot be used to unlock a data file locked by another session or by another program. We advise you to unlock a data file as soon as possible in order for the other sessions to be able to access this data file.
AndroidAndroid Widget Windows MobileJava This function can be used with HFSQL Client/Server data files.
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
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 19 and later
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
WINDEVJava This function is now available for the Java applications.
New in version 19
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
WINDEVJava This function is now available for the Java applications.
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
HLockFile(CUSTOMER, hLockReadWrite)
// Modify the file
...
// Unlock
HUnlockFile(CUSTOMER)
Syntax
<Result> = HUnlockFile([<File Name>])
<Result>: Boolean
  • True if the data file was unlocked,
  • False if a problem occurred (the data file is not locked, ...). 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, HUnlockFile handles the last data file used by the last function for HFSQL management (starting with the letter H).
Remarks
HUnlockFile has no effect if:
  • the data file is in single-user mode (see HMode).
  • the data file is not locked.
  • the data file was locked by another program.
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