Extracting a reference to a stack
ambassador at fourthworld.com
Sun Aug 9 01:59:49 CEST 2015
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.
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?
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode