Determining stack of object nested in groups
Richard Gaskin
ambassador at fourthworld.com
Sat Aug 28 18:54:51 EDT 2004
Trevor DeVore wrote:
> I can think of two ways to get the stack an object belongs to based on
> the long id of the object:
>
> 1) Parse the string and extract the "stack myStack" part.
> 2) loop that keeps getting the owner until the owner is a stack.
>
> I couldn't find a built in property for this. Is there one or is option
> 1 the best way to do this?
I think so, perhaps something like:
if ("stack ""e&"MyStack""e) is in \
the long name of the target then....
--
Richard Gaskin
Fourth World Media Corporation
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list