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-transactionsTransaction Functions

Arguments

NameComments
sub_transactionA string indicating the name of an existing sub-transaction.
statusThe 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.