EndTransaction

ODBPPLib.IODBPP.EndTransaction is used to release the database without closing the database, it can also be used to change the mode of the transaction.
void EndTransaction(
);

Parameters

void

Return Values

DeleteObject returns the DatabaseObject with the newly deleted object's values.

Remarks

  • Need not be called if the database is to be closed through CloseDatabase.
Example Use
  • C#
private void button1_Click(object sender, EventArgs e)
   try{
      OpenFileDialog dlg = new OpenFileDialog();
      DialogResult result = dlg.ShowDialog();
      if (result == DialogResult.OK) {
         ODBPPLib.ODBPP odbpp = new ODBPPLib.ODBPP();
         odbpp.OpenDatabase(dlg.FileName);
         odbpp.BeginTransaction(odbpp.SHARED, 60000);
         ...
         odbpp.CloseDatabase();
      }
   }
   catch (Exception e1){
      MessageBox.Show(e1.Message);
   }
}

Also See

AbortTransaction, BeginTransaction, CommitTransaction
Listen All
Comments (0)
Characters left: 2500
 
Ekky Software Homepage T-Accounts Online ObjectDatabase++ TScript Ekky Software Homepage T-Accounts Onlinee ObjectDatabase++ TScript