ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / Managing transactions / WLanguage 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
Used to find out whether a transaction is in progress.
Example
// Tries to determine if a transaction is in progress
// ISAM database (HFSQL Classic)
bConnectionInProgress is boolean = HTransactionInProgress()
// Tries to determine if a transaction with MyConnection is in progress
// Client/Server database (HFSQL Client/Server)
MyConnection is Connection
bConnectionInProgress is boolean = HTransactionInProgress(MyConnection)
Syntax
<Result> = HTransactionInProgress([<Connection>])
<Result>: Boolean
If a connection is specified:
  • True if there is a transaction on the specified connection or if there is a global transaction (for HFSQL Classic (ISAM) and all HFSQL Client/Server connections).
  • False if there is no transaction in progress on the specified connection.
If no connection is specified:
  • True if there is a global transaction (for HFSQL Classic (ISAM) and all HFSQL Client/Server connections).
  • False otherwise. Caution: there may be transactions in progress on specific connections.
<Connection>: Optional character string or optional Connection variable
Connection to use. This connection corresponds to:
Business / UI classification: Business Logic
Component: wd270hf.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help