01-29-2020 07:52 AM
Hi,
I have write simple main program (as attach) for the controls selection.
The selection item will be highlighted and allow user to click & it will call a subvi and minimize the main.
Some item selection will prompt a listbox that further allow user to click contents of the listbox & call a subvi and minimize the main.
As i will have plenty of selection item controls (20x) and listboxes (8x) and it make the overall program very complicated.
So, any advice for the code improvement?
Thank you.
-Simon
Solved! Go to Solution.
01-29-2020 10:13 AM
As it is, it's quite straight forward.
If it gets more complicated, you should abstract this in some way. But without knowing the details of the logic involved, it will be hard to advice.
I'd group controls in classes (like QControls), or enable\disable by control labels, or arrays of references, or clusters of references, but it all depends on the details.