GetCancelOnErrorInBeginTransaction Function

Action

Gets the value of the setting that specifies whether the runtime should be halted in case of an error in the begin transaction.

Include file

Kernel.bdh

Syntax

GetCancelOnErrorInBeginTransaction( ): boolean;

Return value

  • true if the runtime should be halted in case of an error in the begin transaction

  • false otherwise

Example

dcltrans
  transaction TInit
  begin
    if GetCancelOnErrorInBeginTransaction()then
      writeln("This virtual user will be halted once the error has"
              "risen.")
    end;
    RepMessage("Custom Error", SEVERITY_ERROR);
  end TInit;