Oso- thank you for your initial post and solution. Although I found out what was going on quickly enough by carefully studying with the debugger, I wasn't sure how to fix this and I was frustrated that BP assigns _the_exact_same_ number to two _different_ handles (of buttons, in my case).
Matty- I have found that it _does_ matter, and that you must specifically set the variables to zero after using FreeGadget on them (otherwise, two different variable handles will often/likely get the exact same number). I'm pretty sure I can provide code to reproduce the problem, if you like. Maybe I was doing something wrong in overall setup, but this was not intuitive and I think it should have worked. Or, this should be noted in the FreeGadget command reference.
Matty- I have found that it _does_ matter, and that you must specifically set the variables to zero after using FreeGadget on them (otherwise, two different variable handles will often/likely get the exact same number). I'm pretty sure I can provide code to reproduce the problem, if you like. Maybe I was doing something wrong in overall setup, but this was not intuitive and I think it should have worked. Or, this should be noted in the FreeGadget command reference.