Refer to new group?

Phil Davis revdev at
Tue Aug 2 12:37:16 EDT 2016

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.

Phil Davis

On 8/2/16 9:04 AM, Jeanne A. E. DeVoto wrote:
> At 8:37 AM -0700 8/2/2016, Richard Gaskin wrote:
>> Apparently the "group" command is an exception to the general rule 
>> that "it" will contain the long ID of a newly-created object after a 
>> command that creates it.
>> And using "last" is not always reliable with groups.
> Since your script knows which object(s) you grouped, you could use the 
> owner:
>    group field 1 and field 2
>    get the long ID of the owner of field 1 -- owner is the new group
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:

Phil Davis

More information about the Use-livecode mailing list