Extracting a reference to a stack
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>
> 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"
> 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:
More information about the Use-livecode