On Sep 6, 2006, at 10:31 AM, Robert Poland wrote:

Hi,

In Class1 I have this statement"w=TextWindow"

When I run it I get the error This property does not exist.

I have w=TextWindow set as a property, Global in TextWindow. I thought that a global property could be accessed from anywhere without a prefix.

Am I mistaken?

About Global properties; NO.

About your property in TextWindow being Global; YES.

One of the *very bad things* about 2005+ is that the popup menu that actually told you that it was Public in 5.5 has been replaced with an icon that is the same as the icon in a Global in a MODULE property without notifying you of the difference. Very bad karma for new users.

So, although "Public" in a class looks like a Globe in 2005+, it really isn't global and you must call it by naming the class first. It also must exist at the time of calling. It might self-instantiate if it is in a window class through implicit instantiation. This can also create other problems if you are not certain about what you are doing.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to