PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

This content comes from an automatic translation.
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).
Remark: 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 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
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 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 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 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.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
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 (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 Mono mode (see HMode function).
  • the data file is not locked.
  • the data file was locked by another program.
Component : wd250hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment