ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Management of transactions enabled
  • Limit
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
Enables or disables the management of transactions for one or more data files.
When the management of transactions is disabled, all transaction-related functions are inhibited (<Connection variable>.TransactionStart, <Connection variable>.TransactionEnd, <Connection variable>.TransactionCancel).
Remark: The management of transactions is enabled by default.
Example
// Disable the management of transactions on the Customer data file
Customer.SetTransaction(False)
Syntax
<Result> = <Source>.SetTransaction(<Options>)
<Result>: Boolean
Corresponds to the former management mode of transactions (before the call to <Source>.SetTransaction):
  • True if the management of transactions was enabled,
  • False if the management of transactions was disabled.
<Source>: Type corresponding to the specified source
Name of the data file used.
<Options>: Boolean
  • True if the management of transactions must be enabled for the data file,
  • False if this management must be disabled.
Remarks

Management of transactions enabled

If the management of transactions is enabled for a single file, only the operations performed on this data file will be taken into account in the management of transactions (regardless of the data files specified in <Connection variable>.TransactionStart).
WEBDEV - Server codeAjax

Limit

The management of transactions does not apply to the xBase files.
Component: wd290hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/05/2023

Send a report | Local help