Well, I know there are a lot of Access gurus here; hopefully there are some Delphi gurus that know how to solve this particular problem…
I’m using a single TCollectionItem descendant (“TmyItem”) as a property in a component. It works in the property editor, and the values I put in are properly saved and reloaded.
The problem is my set method in the property definition doesn’t seem to ever be executed. E.g.,
property SomeItem : TmyItem read pMyItem write SetMyItem;
Because the values in the collection (e.g., SomeItem.SomeString) are streamed and loaded okay, doesn’t SetMyItem have to be getting called? But if so, how come I can’t set a breakpoint that actually stops here? I can on all OTHER Set methods. I’ve set flags in the set method to see if it’s being called, and it never is.
Note: if I define an independant instance of TmyItem and Assign it to SomeItem, SetMyItem gets called. But shouldn’t it also get called when I use SomeItem.PropertyName as well? If not, then what mechanism is actually storing and retrieving the values I put in?
Thanks!