Ed, I admit that it SHOULD work no problem, but like Peter I had an isolated specific problem with _Screen properties which mysteriously seemed to be in scope then out of scope which is why I recommended the suggested approach. I know it sounds totally illogical but it was one of those problems that was easier programmed around than finding out exactly why - and I could reproduce it so I guess that I could revisit the code and take another look even though it was with VFP8 not 9.
This problem only ever manifest itself when I added lots and lots of objects to _Screen - and I mean lots as in several thousand which was for a specific project using queueing theory. Simply transferring them to a global object as a parent made the problem go away, with no other changes. I just wonder how many properties Peter is adding and if it is related but it sounded familiar. P.S. Hope your clothes arrived OK. Dave Crozier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Leafe Sent: 14 September 2007 12:03 To: ProFox Email List Subject: Re: Problem with AddProperty On Sep 14, 2007, at 2:31 AM, Dave Crozier wrote: > I would suggest simply creating a global object and then adding > properties > to it. > > Public oGlobal > oGlobal=CreateObject("clsGlobal") Why create, when one exists already? I've used _SCREEN as a handy global that will always be available. -- Ed Leafe -- http://leafe.com -- http://dabodev.com [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

