TransactionRollback (NotesDatabase - LotusScript)

Discards database changes recorded by TransactionBegin.

Defined in

NotesDatabase

Syntax

Call notesDatabase.TransactionRollback()

Usage

TransactionRollback can be called only after TransactionBegin.

Note: For important information about using Transaction methods, see Effects of using transaction controls.

Example

Sub Initialize
  Dim s as new NotesSession
  Dim db as NotesDatabase
  Dim doc as NotesDocument
  Set db = s.GetDatabase("myserver", "mydb")
  Call db.TransactionBegin()
  Set doc = db.CreateDocument()  
  Call doc.ReplaceItemValue("Form", "Memo") 
  Call doc.ReplaceItemValue("Subject", "TestDoc")
  Call doc.Save(True,False)
  Call db.TransactionRollback()
End Sub