Show globals
Richard Gaskin
ambassador at fourthworld.com
Wed Dec 10 17:44:59 EST 2008
Francis Nugent Dixon wrote:
> In the IDE, open several stacks at once,
> switching from one stack to another, and
> in any of the stacks, you see the total list
> of globals defined by all current stacks, and
> you don't know which globals belong to which
> stack.
It seems appropriate that the Message Box shows all globals, since
they're global in scope and available to every script running during the
session.
The IDE itself shows only a very few globals, so I'm assuming the ones
you're seeing are for your own stacks, yes?
If so, one solution might be to consider using arrays, where you store
values for a given stack as elements in a single global.
Another might be to reconsider the need for such globals, perhaps opting
for script-local variables for those values only needed by a single script.
--
Richard Gaskin
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com
More information about the use-livecode
mailing list