ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL functions
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
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).
Remark: HUnlockFile cannot be used to unlock a data file locked by another session or 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 Java This function can be used with HFSQL Client/Server data files.
Example
// Lock
HLockFile(CUSTOMER, hLockReadWrite)
// Modify the file
...
// Unlock
HUnlockFile(CUSTOMER)
Syntax
<Result> = HUnlockFile([<Data file>])
<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.
<Data file>: Optional character string
Name of the data file used.
If this name is not specified, HUnlockFile will use the last data file used by the last HFSQL function (function starting with "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.
Component: wd290hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/06/2023

Send a report | Local help