After creating my collapsable menu I decided I wanted to try to make one that was dynamic. So far this board has been a ton of help, for all of you that have answered my questions of gave me tips, thanks a lot.
Now on to my next question, is it possible to extract only part of a variable. When a button is clicked I assign “this._parent._name” to a variable which will return something along the lines of BtnGroup1 or BtnGroup2 … etc.
I’m wondering if it’s possible to Drop the “BtnGroup” part and somehow return just the number. I have the number of subButtons stored in an array need some way to pull the number of sub buttons for the main button that was clicked. Any help, ideas, or suggestions is greatly appreciated.