Refer to new group?

Phil Davis revdev at pdslabs.net
Tue Aug 2 13:49:23 EDT 2016


I should have said "refer to the child control by ID or name" - neither 
of which are affected by grouping.

Phil



On 8/2/16 9:37 AM, 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.
>
> 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 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