Share this page

# lr.end_sub_transaction

Marks the end of a sub-transaction.

## C#

    void lr.end_sub_transaction( string sub_transaction, int status );

## VB.NET

    Sub lr.end_sub_transaction( ByVal sub_transaction  As String, ByVal status  As Integer )

Transaction Functions

## Arguments

Name | Comments
--- | ---
sub_transaction | The name of an open 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

No value returned.

## Parameterization

Standard parameterization is not available for this function.

## Example

The following example ends the Login sub-transaction , marking it with an lr.PASS status.

    lr.end_sub_transaction("Login",lr.PASS);

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