GetDatabaseMembers

ODBPPLib.IODBPP.GetDatabaseMembers returns all the tables currently within the control file.
ODBPPLib.DatabaseMemberList GetDatabaseMembers (
);

Parameters

void

Return Values

GetDatabaseMembers returns the DatabaseMemberList with the list of all current tables with the datbase.

Remarks

  • This method requires you to begin a transaction in order to prevent any other process from changing the database while this is progress.
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);
         listView1.Items.Clear();
         foreach (ODBPPLib.DatabaseMember member in odbpp.GetDatabaseMembers())
         {
            listView1.Items.Add(member.tableName);
         }
         odbpp.CloseDatabase();
      }
   }
   catch (Exception e1){
      MessageBox.Show(e1.Message);
   }
}

Also See

BeginTransaction
Comments (0)Listen All
Characters left: 2500
 
Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript