Missing properties
Geoff Canyon
gcanyon at gmail.com
Sun Dec 7 07:47:06 EST 2014
On Sat, Dec 6, 2014 at 8:03 PM, Peter Haworth <pete at lcsql.com> 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
More information about the use-livecode
mailing list