Hi Klaus,
Thanks for the answer. First of all, you say :
You will need to use a global (or local) variable to store your string, if you do not want to use a custom property of an object/card/stack.
I actually want to use a custom property of a stack. So how would you put a custom property called say "bScript" in the backscript ? Custom properties are no scripts right ?
Secondly, concerning your remark, let me explain more broadly my problem, it may help you to understand :
I have a mainstack which Stack script contains different functions and message handlers (e.g. on keydown) that I
also wanna be able to use when the ask dialog tool stack is open.
I first thought that I could put the script in the "back" using "start using..." but then when my mainstack is open, the messages will be handled
twice and so the code will also executed twice (something I don't want)
Then I thought I could "store" the message handlers in the script of an object (e.g. a button) and whenever the frontstack is the ask dialog, I could execute "insert ...into " but the problem is that the handlers in the button itself will be executed (hence my question about putting the button "outside" of the message path : I meant by that that I don't want that the handlers in the object script to be executed : the button has to just serve as a container)
finally I thought I could put the code inside a custom property but then I haven't been able to put the code in the back...
Sorry for being so long, but if your or anyone could help me find an elegant way to solve this problem, it would be awesome !
Thanks again,
Godot