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, RewriteObjectListen All
Comments (0)