Determining stack of object nested in groups

Richard Gaskin ambassador at
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 "&quote&"MyStack"&quote) is in \
     the long name of the target then....

  Richard Gaskin
  Fourth World Media Corporation
  Ambassador at

More information about the Use-livecode mailing list