Determining stack of object nested in groups
Jim Lyons
jimlyons at earthlink.net
Sun Aug 29 09:11:31 EDT 2004
On Aug 29, 2004, at 3:22 AM, use-revolution-request at lists.runrev.com
wrote:
> I just put together a regular expression to extract an
> unknown stack:
>
> get matchText(long id of myObject, "(stack ""e&".*""e&")$",
> tTargeStack)
>
> This will put:
>
> stack "Owner stack name"
>
> into tTargetStack.
Since a quoted string is one "word" in Transcript and since the stack
is always the last component of the long id, you may also use:
word -2 to -1 of the long id of myObject
Jim Lyons
More information about the use-livecode
mailing list