As my application(s) became more complex, I also ran into topstack and curentcard issues. As a result, I am in the habit now of either using "of me" appended to every command of in a card or stack script, or else sending the long id of an object to a command or function that is not in the message path.
For instance, if I am processing all the fields on a card, I put the handler in the card script and then use the form 'field "myField" of me' to reference each field. Even better, if I reference the object repeatedly I will 'put the long id of <object reference> of me' into a variable initially, then use the variable as a reference. Bob S > On Aug 1, 2022, at 12:43 , Paul Dupuis via use-livecode > <firstname.lastname@example.org> wrote: > > The Dictionary Entry (LC 9.6.8) does state "If the wait..with messages form > is used, LiveCode continues normal processing during the wait. The current > handler is frozen, but the user can start other handlers and perform other > actions such as switching cards." and 'switching cards' does imply changing > the context of relative object references even if the defaultStack does not > change, so perhaps I should have realized, but didn't until just last week. _______________________________________________ use-livecode mailing list email@example.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode