I want something like a sub routine to us in my app and I am not sure what to use in Xojo. I am not looking for the code but do I use a method, module or class or is there a sub routine function? What I have is 32 BevelButtons in a control group. When one is pressed I need it to stay lit, no problem, but when a new button is pushed that should stay lit (ok no problem) but the previous choice should no longer be lit, like radio buttons. All of the buttons are toggle type. The code is simple, I just don’t want to have to put it in 32 times, once for each button…
I know this consumes some time, James, but did you look into some of the recorded Webinars? While the manual may handle some features separately sometimes without the focus on a real life project, many things may become clearer by the programming webinars examples. In Introduction to Programming 201 you will find the methods broadly explained: