GetTableSchema

ODBPPLib.IODBPP.GetTableSchema returns the table schema of an open table.
TableSchema GetTableSchema (
   uint tableId
);

Parameters

tableId The table Id defining the table's handle.

Return Values

GetTableSchema returns the TableSchema of the selected table.

Remarks

  • The table should be opened before any call to GetTableSchema.
Example Use
  • C#
public static uint FIRST_TABLE = 1;
private void button1_Click(object sender, EventArgs e)
   try{
      ODBPPLib.ODBPP odbpp = new ODBPPLib.ODBPP();
      odbpp.OpenDatabase("C:\\My\\Database\\Control\\File.odc");
      odbpp.BeginTransaction(odbpp.SHARED, 60000);
      odbpp.OpenTable(FIRST_TABLE);
      ODBPPLib.TableSchema schema = odbpp.GetTableSchema(FIRST_TABLE);
      listView1.Items.Clear();
      foreach (ODBPPLib.ObjectField field in schema.fields)
      {
         listView1.Items.Add(field.offset.ToString() 
            + " " + field.length.ToString() + " - " + field.name);
      }
   }
   catch (Exception e1)
   {
      MessageBox.Show(e1.Message);
   }
}

Also See

CreateTable, SetTableSchema
 

Contact Ekky Software

All around the world Ekky Software is contactable seven days of the week by submitting the following details.

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

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