Hi. You are getting the error message in the message box?
If I make a new stack and place your handler in the card script, I will indeed get an error in the message box if I just invoke “openStack” directly. Of course, if I “send openStack to this card” all works fine. Placing a red dot should not be pertinent. Placing the handler in the stack script works as advertised. I guess I am not clear about what you are seeing. Craig > On Sep 23, 2021, at 8:31 AM, Curry Kenworthy via use-livecode > <[email protected]> wrote: > > > Peter: > > > I’ve just tried making a new stack that has: > > > on openStack > > pass openStack > > end openStack > > 1. Make sure this openStack is in your first CARD's script. > > > I poked into the script of the stack home.livecodescript > > and see these lines > > > if the short name of the owner of the target is not "Home" then > > pass openStack > > end if > > 2. You (or another open stack) may have done something unusual. > I'm not 100% convinced you've found the problem yet. > There are a few inconsistent details in your message, > plus it seems that LC did not pinpoint the offending code line? > > 3. But the home.livecodescript code could be more robust. > (Always ensure a target and owner exist before accessing properties.) > You could QA report that as a possible IDE bug. > > Meanwhile, don't pass openStack and see if you still get an error! > > Best wishes, > > Curry Kenworthy > > Custom Software Development > "Better Methods, Better Results" > LiveCode Training and Consulting > http://livecodeconsulting.com/ > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
