Skip to content

Begin_Transaction command

Include: Use Db\DBCommands.pkg

Purpose

Starts a database transaction block for DD operations.

Syntax

Begin_Transaction
    // DD operations
End_Transaction

How it works

  • Begin_Transaction opens a Try block and sends BeginTransaction to ghoDbTransactionManager.
  • Transactions are nestable; the transaction manager starts a new transaction when depth moves from 0 to 1.
  • The transaction is completed by End_Transaction; use the matching end command for every transaction block.

Example

Begin_Transaction
    Clear oCustomerDD
    Move "Data Access" to oCustomerDD.Name
    SaveRecord oCustomerDD
End_Transaction

See also