ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Unlocks the records of a data file:
The data file can also be unlocked by closing it (<Source>.Close).
Note: <Source>.UnlockFile does not unlock a data file blocked 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
// Blocage
Client.BloqueFichier(hLockReadWrite)
// Modification du fichier
...
// Déblocage
Client.DébloqueFichier()
Syntax
<Result> = <Source>.UnlockFile()
<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.
<Source>: Type corresponding to the specified source
Name of the data file used.
Remarks
<Source>.UnlockFile has no effect if:
  • the data file is in single-user mode (see <Source>.Mode).
  • the data file is not locked.
  • the data file was locked by another program.
Component: wd300hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/04/2024

Send a report | Local help