|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Wed Jun 02, 2010 10:18 pm
How to reference a variable from another window? |
Within the same package I have a variable that I want to use. The issue is that it's in a different window. Suggestions on how to reference it?
Edit: My best guess would be to send the variable over with #winexec |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Jun 02, 2010 10:39 pm |
Settings inside a window cannot be referenced by settings outside that window. Your choices are as follows:
1)move the variable outside of the window
2)move the script inside the window
3)give up and go do something else |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
hogarius Adept
Joined: 29 Jan 2003 Posts: 221 Location: islands.genesismuds.org
|
Posted: Thu Jun 03, 2010 2:30 am |
What about setting up a global variable in a module outside all your windows?
|
|
|
|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Thu Jun 03, 2010 4:41 am |
hogarius wrote: |
What about setting up a global variable in a module outside all your windows? |
This is what I needed to do. Thanks. |
|
|
|
|
|