Scott Slaugh wrote:
However, when I try to run the program, the compiler selects numbers1 from the
changeNums method and tells me that This Method or Property does not Exist. Is
there some way I can get this to work out so that I don't have to hard code
this in each window?
That's because numbers1 isn't a property of method of Window, which is the way
you've declared your cWindow reference. Is it the case that you are going to
have a bunch of different window classes that are all going to have a numbers1
in them? Or do you just have one window class with numbers1 in it? If that
latter, then you just need to make your cWindow a reference to that particular
window class:
Protected Sub changeNums(cWindow as MyWindowClass)
cWindow.numbers1.text=""
end sub
But, couldn't you just put this method in MyWindowClass directly?
Also, just a to pick a little nit, REALbasic programs aren't scripts.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|