Problem with arrays

Ronald

Member
I am using the object version of DOA. I try to add values to a field of nested objects by adding references. My problem is that I can't add a value like stated in the manual after the last element which results in a access violation.

This is my code.

var
aObject : TOracleObject;
begin
aObject := OracleObject.ObjAttr(FName);
aObject.RefElements[aObject.ElementCount].Assign(Element.GetOracleObject.Reference);
FElementCollection.Add(Element);

Thanks in advance,

Ronald
 
Can you isolate this code, send me a demo project with this code, and include a script that creates the database objects? I will try to reproduce the problem here.

------------------
Marco Kalter
Allround Automations
 
Back
Top