New topic: A big problem with instanced windows in my project :(
<http://forums.realsoftware.com/viewtopic.php?t=33744> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Tommy Hofton Post subject: A big problem with instanced windows in my project :(Posted: Tue May 11, 2010 12:14 pm Joined: Thu Apr 30, 2009 1:00 pm Posts: 12 Lets say I do this in app.open, in a project where there is not set any default windows to open when executing the software: Dim w As New someMainWindow w.show Then, inside this new instanced window "w", i got a button that has this code in the pushbutton.action event: Dim w As New someConfigWindow w.show Then i want the new instance of the "someConfigWindow" to be able to reference back to a already defined method or property stored in the other instanced "someMainWindow" that instanced the new someConfigWindow. But how do i do that? What i mean is, how do i know what "parent" window that had the button that created the new instance of the "someConfigWindow" so that i can reference to variables inside the parent window like: parentWindow.someStoredString = "some text to update" or parentWindow.someSubRoutine("some data") Ive tried a bunch of self-made solutions, but i always get error: "This method or property does not exist" Ive also read the docs, and the only refernece system if found that is almost like what i want is "self." and "me.", however, im looking for kind of a "parent." that goes one step further back than "self.", if that makes any sense. I'm not sure if i've managed to explain the problem in such a way that it is understandable to anyone here. *scratches my head - not much hair left I hope someone here can help me out of this mystery. Thanks in advance. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
