GetObject
ODBPPLib.IODBPP.GetObject allows for a transaction to obtain the DatabaseObject that is current held in the table handle.ODBPPLib.DatabaseObject GetObject ( );
Parameters
void |
Return Values
GetObject returns the DatabaseObject with the current 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); object[] key = new object[2]; key[0] = "127"; key[1] = 0; if(odbpp.DeleteObject(FIRST_TABLE, odbpp.GREATER_EQUALTO, 6, key) != null) { result = odbpp.GetObject(); if(result.readField("First") == 123) odbpp.CommitTransaction(true); } } catch (Exception e1) { MessageBox.Show(e1.Message); } }
Also See
AddObject, DeleteObject, NewObject, ReadObject, RewriteObject, RestoreObjectListen All
Comments (0)