CloseDatabase

ODBPPLib.IODBPP.CloseDatabase closes an open database. This method does not need to be called unless you wish to release the database without calling the destructor.
void CloseDatabase  (
);

Parameters

void

Return Values

Remarks

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.CloseDatabase();
      }
   }
   catch (Exception e1){
      MessageBox.Show(e1.Message);
   }
}

Also See

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