attaching my group id to a control in a subgroup

Dr. Hawkins dochawk at gmail.com
Tue Aug 22 19:08:13 EDT 2017


On Tue, Aug 22, 2017 at 3:28 PM, Jonathan Lynch via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Can you have a function in the appropriate group that returns its unDna?
> This way, it will not matter about any subgrouping.
>
> Function MyUnDna
> Return the unDna of me
> End MyUnDna
>
> It would need to be a group-level function, which isn't a problem.  I'm
always hesitant, though, to rely on "me"  [and finding "me" in the
dictionary is an adventure in itself . . .  {now *Bug 20289*
<http://quality.livecode.com/show_bug.cgi?id=20289> - "me" is nearly
impossible to find in dictionary }]

if I have the structure

  rawRow
    someGroup
        anotherGroup
           myControl

and define in rawRow (actually, in it's behavior)

on getProp uDna

return the uDna of me

end getProp



will this do what I mean?

Seems nice, clean, elegant and fast . . . and doesn't involve a bunch of
redundant setting . . .
-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the Use-livecode mailing list