Finding objects where the handler is [solved]
Posted: Mon Oct 23, 2017 5:28 pm
Hello,
So the way LC works, if a handler is triggered by a handler on a different stack, the second handler looks for objects on the stack of the original handler.
example:
Result: fld "test" isn't found, because it's on Stack B, not Stack A.
How can I tell Card A of Stack B to look at its own objects instead of the objects of Stack A?
Obviously I can use
but I have hundreds of fields and I would rather keep my code tidier than that.
Putting
or
doesn't change anything, unfortunately.
Any ideas?
So the way LC works, if a handler is triggered by a handler on a different stack, the second handler looks for objects on the stack of the original handler.
example:
Code: Select all
on mouseup --Card A of Stack A
send "myHandler" to stack "AnotherStack"
end mouseup
on myHandler --Card A of Stack B
put "hello" into fld "test"
end myHandler
How can I tell Card A of Stack B to look at its own objects instead of the objects of Stack A?
Obviously I can use
Code: Select all
put "hello" into fld "test" of card A of Stack B
Putting
Code: Select all
go card A of Stack B
Code: Select all
open card A of Stack B
Any ideas?