realbasic-nug
[Top] [All Lists]

Re: Error Bug in Mac R2006r2?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Error Bug in Mac R2006r2?
From: Louis G5 Batayte <loug5 at batayte dot com>
Date: Fri, 28 Apr 2006 15:34:59 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20060428185913 dot 2581019125E at jareth dot dreamhost dot com>
Thanks Joe, I knew I was going to feel stupid when someone pointed out my error, and I do.
Lou


On Apr 28, 2006, at 2:59 PM, joe at strout dot net wrote:

Lou wrote:

I created a simple Window with a Pushbutton and a simple Class.
When attempting to Run the program it halts with a "property does not
exist"  error.

The error is quite right. You're trying to reference "Class1.Abc". But Abc is not a shared property of Class1; it's a regular property, and exists only in relation to some particular instance. You need to reference it through some instance, e.g. like this:

  Dim foo As New Class1
  msgbox str(foo.Abc)

P.S. I went backwards and under RB 2006r1, this program compiles and
runs.

That'd be a bug in 2006r1 then -- one which apparently they've fixed.

Best,
- Joe

--
Joe Strout -- joe at strout dot net
Available for custom REALbasic programming or instruction.

_______________________________________________
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>



_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>