Call a function on another card

Bob Sneidar bobsneidar at iotecdigital.com
Thu Feb 23 17:56:24 EST 2017


I may be mistaken, but I think that script locals are accessible to a behavior script. If so, you could keep the script local variables in the card, and the handlers in a library or backscript. I will set up a test for that. 

Bob S


> On Feb 23, 2017, at 14:51 , Peter Bogdanoff via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Bob,
> 
> This is a good question. In my case, each card script has script local variables that are used only for that card.
> 
> In this unusual case (I’m creating a text search method) I need to access the contents of those variables from another stack.
> 
> I indeed would like to move common handlers to a stack or library script, but these handlers use many local variables relevant to the individual cards. I have not yet thought of a simple way to use common handlers without a LOT of passing of local variable data.





More information about the use-livecode mailing list