>I think the problem is the syntax of the command. > >> >That line should be written as > >This.Add(ThisForm.pgfBizObj.Page6.ROLinesObj1) > > >If the object already exists, and you've already checked the z-order according to your message, then all you have to pass the add method is the object reference.
OK, I see what you mean. I finally got all this to work correctly, at least so far ;) Thanks.
Here's what I ended up doing:
In my ChangeRateEvent() class I changed the Add() call in DefineParticpatingEntities() to:
Then I dragged this object back onto Page 6. This change made sure I was using the same object name so my Get() would work on the form and if I instanciated the ChangeRateEvent class by itself.
Surprisingly, if I override the DefineParticipatingEntities() on the form to:
It would fail again, so I took it out. I don't know if it's just creating a second instance of ROLinesObj or if it's using the one already on the form. Either way it seems to work OK.