PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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
HInfoLock (Function)
In french: HInfoBlocage
HFSQL Client/ServerAvailable only with this kind of connection
Returns information about the lock performed on a data file, on a record or on all the records found in a data file.
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 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.
Versions 22 and later
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.
New in version 22
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.
Android This function is now available for Android applications.
Example
LockList is string
// Lists all the locks of the CUSTOMER data file
LockList = HInfoLock(CUSTOMER)
// Lists all the locks performed on the data files of CSConnection
LockList = HInfoLock(CSConnection)
// Lists all the locks performed on CUSTOMER.FIC data file of CSConnection
LockList = HInfoLock(CSConnection, ".\customer.fic")
Syntax

Information about the locks performed on a data file identified by its name Hide the details

<Result> = HInfoLock(<Data file> [, <Record number>])
<Result>: Character string
  • Empty string ("") if there is no lock or if the data file used is not a HFSQL Client/Server data file.
  • Information about the lock. This information is separated by TAB characters and it has the following format:
    <Physical name of the data file relative to the database> + TAB +
    <Record number> + TAB +
    <User> + TAB + <Name of client computer> + TAB +
    <IP address of client computer> + TAB + <Name of client application> + TAB +
    <Type of lock> + TAB + <Date of lock implementation> + TAB +
    <Number of seconds since start of lock> + CR
    • <Record number> is set to -1 if the lock was performed on the data file.
    • The <Type of lock> parameter can correspond to:
      • W: Lock in write mode.
      • RW: Lock in read/write.
      • W-T: Lock in write mode performed by a transaction.
      • RW-T: Lock in read/write performed by a transaction.
    • <Start Date of Lock> has the following format: YYYYMMDDHHMMSS. This date is in UTC format (Universal Time Coordinated).
<Data file>: Character string (with or without quotes)
Name of data file used.
If this parameter corresponds to an empty string (""), HInfoLock manipulates the last data file used by the last HFSQL management function (function starting with the letter H).
<Record number>: Optional integer
Number of the record for which the lock information is requested.
If this parameter is not specified, HInfoLock lists all the locks of the data file.

Information about the locks performed on a data file identified by its connection Hide the details

<Result> = HInfoLock(<Connection> [, <Data file path>] [, <Record number>])
<Result>: Character string
Information about the lock. This information is separated by TAB characters and it has the following format:
<Physical name of file relative to the database> + TAB + <Record number> +
TAB + <User> + TAB + <Name of client computer> + TAB +
<IP address of client computer> + TAB + <Name of client application> +
TAB + <Type of lock> + TAB + <Start date of lock> + TAB +
<Nb of seconds since start of lock> + CR
  • <Record number> is set to -1 if the lock was performed on the data file.
  • The <Type of lock> parameter can correspond to:
    • W: Lock in write mode.
    • W-T: Lock in write mode performed by a transaction.
    • RW: Lock in read/write.
    • RW-T: Lock in read/write performed by a transaction.
  • <Start date of lock> has the following format: YYYYMMDDHHMMSS.
<Connection>: Character string (with or without quotes)
Name of the connection for which the lock information is requested. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
If this parameter does not correspond to a connection name, HInfoLock considers that this parameter corresponds to the name of a data file.
<Data file path>: Optional character string (with quotes)
Full path of the data file, relative to the database defined by <Connection name>.
This parameter is ignored if <Connection name> corresponds to the logical name of a data file.
If this parameter is not specified, all the locks performed on all the data files of the database are returned.
<Record number>: Optional integer
Number of the record for which the lock information is requested.
If this parameter is not specified, HInfoLock lists all the locks of the data file.
Component : wd240hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment