On Sat, Dec 6, 2014 at 8:03 PM, Peter Haworth <[email protected]> wrote:
> Every now and again, I wonder why certain properties are not available in
> LC. The ones that puzzles me the most are the owning card and owning stack
> of an object.
>
Do you mean some shortcut to get the owning card no matter what? If you
create a new stack and put a button on the card:
put the owner of button 1
returns
card id 1002
and
put the owner of this cd
returns
stack "Untitled 1"
If the object in question is inside a group, you'd have to recurse your way
out, or you could use:
put word -5 to -1 of the long id of btn 1
or if you prefer:
put word -5 to -1 of the long name of btn 1
(the second would use the name of the card) for just the stack use:
put word -2 to -1 of the long id of btn 1
gc
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode