I want to set then insert an Oracle Object to my database. I'm able to set all the simple data type attributes of the object by calling the SetAttr() method. But I'm not able to set an embedded object attribute. I'm not able to acces it either.
TOracleObject *OPerson = new TOracleObject(OrclSession, "TOPERSON", "");
TOracleObject *OAddress = new TOracleObject OrclSession, "TOADDRESS", "");
OAddress = OPerson->ObjAttr("PERSONAL_ADDRESS");
In debug. mode it opens the page "Classes"
and stops the thread:
function ThreadProc(Thread: TThread): Integer;
var
FreeThread: Boolean;
begin
try
Thread.Execute;
finally
FreeThread := Thread.FFreeOnTerminate;
Result := Thread.FReturnValue;
Thread.FFinished := True;
Thread.DoTerminate;
if FreeThread then Thread.Free;
EndThread(Result);
end;
end;
How to set an embedded object attribute?
[This message has been edited by alan (edited 12 December 2000).]
TOracleObject *OPerson = new TOracleObject(OrclSession, "TOPERSON", "");
TOracleObject *OAddress = new TOracleObject OrclSession, "TOADDRESS", "");
OAddress = OPerson->ObjAttr("PERSONAL_ADDRESS");
In debug. mode it opens the page "Classes"
and stops the thread:
function ThreadProc(Thread: TThread): Integer;
var
FreeThread: Boolean;
begin
try
Thread.Execute;
finally
FreeThread := Thread.FFreeOnTerminate;
Result := Thread.FReturnValue;
Thread.FFinished := True;
Thread.DoTerminate;
if FreeThread then Thread.Free;
EndThread(Result);
end;
end;
How to set an embedded object attribute?
[This message has been edited by alan (edited 12 December 2000).]