Refer to new group?
Phil Davis
revdev at pdslabs.net
Tue Aug 2 13:41:04 EDT 2016
Not so. Try this:
create button "first"
create button "second"
create button "third"
put the name of button 1
group button 1 and button 2
put CR & the name of button 1 after msg
Under your scenario, I would expect the name of button 1 to be "first"
both times we put the name. But the script yields this:
button "first"
button "third"
Certainly there may be cases where your scenario does happen, but my
simple test is not one of those cases. :-)
Regards -
Phil
On 8/2/16 10:10 AM, Jeanne A. E. DeVoto wrote:
> At 9:37 AM -0700 8/2/2016, Phil Davis wrote:
>> If you use the "owner" method of getting the group's ID, be sure you
>> refer to the child control by ID - its number will *always* be
>> changed by the act of grouping it.
>
> ... if you refer to it as "control N", but not if you refer to it as
> "field N" (or "button N", etc).
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
--
Phil Davis
More information about the use-livecode
mailing list