Hello,
I need to know the name of stack which contains a button. I need to make it in the button self.
I can use <<the long name of button "xyz" >> but I need to "parse" the name to find the stack name. Is there a shorter way?
Thank you!
How to get the name of a stack where a component is?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
How to get the name of a stack where a component is?
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki
http://runrevwidgets.com/wiki
Re: How to get the name of a stack where a component is?
UPDATE: Now I se the following code:
Don't forget to eliminate the double quotes using the last "REPLACE", else it will not work!
Code: Select all
local myStack -- Stack name containing this button.
local myTmp1 -- Generic temporary variable.
-- Get stack name containing this button.
--
put the long name of me into myTmp1
put word (wordOffset("stack", myTmp1)+1) of myTmp1 into myStack
replace quote with empty in myStack
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki
http://runrevwidgets.com/wiki