Extracting a reference to a stack

David Bovill david at viral.academy
Sat Aug 8 20:25:57 EDT 2015


The test case would be "this is a stack of rubish" as a substack - that
would break your code?

On 9 August 2015 at 00:59, Richard Gaskin <ambassador at fourthworld.com>
wrote:

> Thierry Douez wrote:
>
> >> Yep - and being a lazy person this is how I get the stack reference:
> >>
> >> function ObjectStack pObj
> >>    return char (offset(" of stack ", pObj)+4) to -1 of pObj
> >> end ObjectStack
> >
> > Not always beneficial to be lazy :)
> >
> > I tried your code with the long ID I gave previously
> > without success.
>
> Which one?
>
> I found this one in a message from you earlier today:
>    --            button id 1003 of card id 1002 of stack "stack 2"
>    --            of stack "/Users/t/Desktop/stack.livecode"
> <http://lists.runrev.com/pipermail/use-livecode/2015-August/217108.html>
>
> When I pass that to the function shown above I get:
>
>   stack "stack 2" of stack "/Users/t/Desktop/stack.livecode"
>
> What did you get?
>
> Or was there another object long ID in this thread I'd missed?
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  ____________________________________________________________________
>  Ambassador at FourthWorld.com                http://www.FourthWorld.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the Use-livecode mailing list