Hi, the following handler:
on mouseUp
open Stack "SuchandSuch"
end mouseUp
...causes an error message, all of a sudden.
Any help/comments greatly appreciated, thank you.
Simple open stack causes an error
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Simple open stack causes an error
Last edited by gyroscope on Thu May 08, 2008 11:58 am, edited 3 times in total.
Hi, my guess is that this me-newbie-Rev-twistup hasn't occured to many people at all, mainly because I'm sure the majority plan their stack/substack system well in advance (unlike me).
I've started the project from scratch, so fingers crossed things should work out this time,...

I've started the project from scratch, so fingers crossed things should work out this time,...

Last edited by gyroscope on Thu May 08, 2008 12:00 pm, edited 1 time in total.
Hi, my mistake/misunderstanding all along...
I had put an on openStack handler in the main stack, and using a beep and answer test, realised that the openStack message applies to any substacks as well...I live and learn!
So a question please: How do I write an openStack handler just for the main stack only, ignoring all substacks?
(i.e on openStack "This Stack Only"
-- set global variables ,etc initial values only
--and other first time, only time, stuff for main stack only
-- without resorting to a preferences file
end openStack)
The above using openStack "Main stack only please!" doesn't seem to work and still runs when other substacks are opened.
Thank you!

I had put an on openStack handler in the main stack, and using a beep and answer test, realised that the openStack message applies to any substacks as well...I live and learn!
So a question please: How do I write an openStack handler just for the main stack only, ignoring all substacks?
(i.e on openStack "This Stack Only"
-- set global variables ,etc initial values only
--and other first time, only time, stuff for main stack only
-- without resorting to a preferences file
end openStack)
The above using openStack "Main stack only please!" doesn't seem to work and still runs when other substacks are opened.
Thank you!

Hi, if any newcomer to the Rev language (like me) encounters this prob and can't get start using and StackInUse to work (like I can't
), there's an easy workaround (perhaps not as refined, but it works!)
If you use on PreOpenStack, OpenStack or CloseStack in your main stack, in any other sub-stacks, put the matching handlers as empty, i.e
on preOpenStack
end preOpenStack
Hope that's useful for someone, sometime!


If you use on PreOpenStack, OpenStack or CloseStack in your main stack, in any other sub-stacks, put the matching handlers as empty, i.e
on preOpenStack
end preOpenStack
Hope that's useful for someone, sometime!
