Class ODBPP::DatabaseMember

Used to list all the tables within a database.
class DatabaseMember{
public:
   unsigned int tableID;
   unsigned int tableLockOrder;
   char16_t *tableName;
};

Members

tableIDthe table's identifier.
tableLockOrderthe position that this table is in the global locking order.
tableName'' terminating string for the table name.

Remarks

Example Use
char16_t *message;
CODBPP database
CODBPP::DatabaseMembers *members;
unsigned int count;
if((error = database.OpenDatabase(TEXT("YourDatabase"))) == NO_ERROR
&& (error = database.BeginTransaction()) == NO_ERROR
&& (error = database.GetDatabaseMembers(NULL,&count)) == NO_ERROR){
   members = (CODBPP::DatabaseMembers*) new BYTE[count];
   if((error = database.GetDatabaseMembers(members,&count)) == NO_ERROR){
      for(int i = 0; i < count; i++) MessageBox(members[i].tableName);
   }
   delete [] (LPBYTE)members;
}
if(error && database.GetErrorMessage(&message) == NO_ERROR)
   MessageBox(message);
database.CloseDatabase();

Also See

GetDatabaseMembers
Comments (0)Listen All
Characters left: 2500
 

Contact Ekky Software

Thank you for your time and interest.
Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript