Previous Topic

Next Topic

BeginTransaction - MaxBasic Function

BeginTransaction

Controls batch processing if a record fails inside a batch. The entire batch can be rolled back using RollbackTransaction.

CommitTransaction saves the batch.

When a rollbacks is triggered by unhandled MaxBasic code, a Warning exception is logged in the system Error Log. Note that internal Accredo events can be rolled back, but external events such as printing and emailing cannot be rolled back.

For example:

BeginTransaction

Try

'Create and save transactions

  CommitTransaction

Catch e

  RollBackTransaction

End Try

See Also

Script Functions

Book Contents

Book Index