On 10/9/2016 4:25 PM, Jeanne A. E. DeVoto wrote: > If it were being designed from scratch, what would the ideal behavior > be for a targetStack property? Should it remain unchanged while a > script is running (unless set explicitly)?
Some long time ago, someone on this list suggested a control block such as "using <objectReference>" ... "end using" Where any object references in the block would always be evaluated relative to the object referred to in the start of the using block. So: using card 3 of stack "X" put the label of btn "A" into myVar ... end using Would look for button "A" on card 3 of stack "X" using stack "X" would be essentially the same as set the defaultStack to "X" but you could also do things like using grp id 1005 of card 3 of stack "X" repeat with i=1 to the number of fields -- would refer only to the field in group ID 1005 of card 3 of stack "X" end repeat end using nested using block would presumably be possible I always though this enhancement would be a great addition to LiveCode. I would suggest this as a compliment to the defaultStack. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode