Share this page

# lr.end_sub_transaction

Marks the end of a sub-transaction.

## JavaScript

    function lr.end_sub_transaction(  sub_transaction, status  )

## VBScript

    Function lr.end_sub_transaction(  sub_transaction, status  )

Example: Sub-transactions | Transaction Functions

## Arguments

Name | Comments
--- | ---
sub_transaction | A string indicating the name of an existing sub-transaction.
status | The transaction status.

The lr.end_sub_transaction function marks the end of a sub-transaction. To mark the beginning of the sub-transaction, use the lr.start_sub_transaction function. You insert these functions immediately before and after the sub-transaction steps.

Multiple sub-transactions can be nested within a parent transaction, but each lr.end_sub_transaction statement must match an lr.start_sub_transaction statement or it will be interpreted as an illegal command.

## Return Values

On success, returns 0. Returns -1 if the transaction name is illegal or if there is no prior call to lr.start_transaction with a transaction of the same name.

## Parameterization

Standard parameterization is not available for this function.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: