Le 19 mars 07, à 21:10, [EMAIL PROTECTED] a écrit : >> I think I solved my problem. I needed to add : >> aTextesActifs = new dictionary >> in the App's activate event. > > > This is very fundamental to how object references work in REALbasic, so > if you still don't understand what's going on, let's discuss it further > until it becomes clear. (There are probably others on the list who are > just as confused about it, so it's useful discussion.)
Thanks for your answer, Joe, I understand now. In another project, my app had a property to store the reference of the active window, which was a custom subclass of Window. The constructor of this class did basically the same : put "me" into this property when the constructor of this custom window was fired. In that case, there was no need to assign something to the property before it could be used by the window's constructor. I understand that *modifying* a property, like adding a key/value pair to a dictionary, works only if this dictionary already exists. For me, the two procedures were quite similar. > P.S. When you reply to any post, please trim all but the key part > you're replying to, as I've done here -- nobody needs to see the entire > previous message (footers and all!) repeated again. Thanks! I completely agree. The thing is I wanted to say I had solved my problem before someone starts answering it. Unfortunately, Norman was too fast ! Thanks, Norman. Octave _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
