TransactionRollback (NotesDatabase - LotusScript)

Discards database changes recorded by TransactionBegin.

Defined in

NotesDatabase

Syntax

Call notesDatabase.TransactionRollback()

Usage

TransactionRollback can be called only after TransactionBegin.

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.TransactionRollbackt()
End Sub