Why does my LiveCode script fail to properly update and pass data between stacks using send and dispatch
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Why does my LiveCode script fail to properly update and pass data between stacks using send and dispatch
Hi everyone, I’m working on a multi-stack LiveCode project where I’m trying to pass data between a mainstack and a substack using both `send` and `dispatch`, but I’m running into inconsistent behavior where the receiving stack either doesn’t update its fields or throws an execution error depending on how the message is triggered; for example, I’m using code like `send "updateData tValue" to stack "SubStackA" in 0 millisecs` and also testing `dispatch "updateData" to stack "SubStackA" with tValue`, but the handler sometimes isn’t recognized or the variable scope seems lost when the message arrives, especially after opening and closing stacks dynamically, so I’m wondering if this is related to message path issues, timing (async vs sync), or how LiveCode handles variable context across stacks, and what would be the correct pattern to reliably pass and update data between stacks in a more complex app structure.
Re: Why does my LiveCode script fail to properly update and pass data between stacks using send and dispatch
Hmmm.
This is a good one.
Craig
This is a good one.
Craig
