NewObject

ODBPPLib.IODBPP.NewObject create a new object buffer for the give table handle.
DatabaseObject NewObject (
   uint tableId
);

Parameters

tableId The table Id defining the table's handle.

Return Values

NewObject returns the DatabaseObject with the newly created object's values.

Remarks

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);
      result = odbpp.NewObject(FIRST_TABLE);
      result.WriteField("First",123);
      odbpp.AddObject(FIRST_TABLE,0);
      odbpp.CommitTransaction(true);
      odbpp.EndTransaction();
   }
   catch (Exception e1)
   {
      MessageBox.Show(e1.Message);
   }
}

Also See

AddObject, DeleteObject, ReadObject, RewriteObject
 

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