02-13-2025 09:23 AM
If only one button should be active, use a radiobutton control instead.
02-14-2025 02:26 AM
What about this?
(It's more 'appropriate' to use Array to cluster after the replace, but then you must know and set the cluster size)
02-14-2025 11:04 AM
@SydneyAVDE wrote:
As said before, today i will upload the code. Here it is. (saved in v20.0)
Functionality: only 1 button may be active, print last activated labelname into string.
I am sure this could be way more efficient.
Here's how it could look like using a radiobutton control (that's just a container for booleans where exactly one is true and the value is an enum with the label of the control. It can also be configured to allow "no selection" if needed).
Your blatant overuse of local variables blurs the distinction between control and indicator. Both strings should be indicators! Right?
Your keyboard keys are latch action, so they reset once read by the code (but the terminal must be inside its event structure!)
02-18-2025 02:21 AM
I had no idea you could modify the controls in a radiobutton control.
02-18-2025 03:14 AM
@SydneyAVDE wrote:
I had no idea you could modify the controls in a radiobutton control.
You can customize a great many things in LV if you look around. Here's some examples.