01-12-2023 09:54 AM
I created a simple state machine. All I want to do is to feed 5 to "control 1" in the next state (Reset control 1).
Do you think it's even possible with my approach?
I have the habit to keep my code organized by placing my controls in a cluster, maybe it's a bad idea in the first place if I want to achieve what I'm trying to achieve. Any correction, feedback, constructive criticism?
Solved! Go to Solution.
01-12-2023 10:09 AM
Hi GRCK,
@GRCK5000 wrote:
I created a simple state machine. All I want to do is to feed 5 to "control 1" in the next state (Reset control 1).
Do you think it's even possible with my approach?
Yes, that's possible!
You already know how to set the whole cluster using a local variable.
You already know how to use BundleByName to change one item in the cluster.
Why don't you combine your knowledge to get the solution???
@GRCK5000 wrote:
I have the habit to keep my code organized by placing my controls in a cluster, maybe it's a bad idea in the first place if I want to achieve what I'm trying to achieve. Any correction, feedback, constructive criticism?
Clusters are good to bundle related items.
Are all your items related?
Should the user be able to edit items in the cluster? Should the cluster be an indicator instead?
Does the user like it when your program may overwrite what the user was editing? (Might be bad UX!)
Conclusion: it might be a good idea to give the intended overall use case instead of focusing on that little behaviour question…
01-12-2023 10:15 AM
Thank you. I found the solution. Hahahah
01-12-2023 11:02 AM
Your code is just plain silly.
Here's functionally equivaled code:
01-12-2023 01:49 PM
Thanks Mr. Altenbach for your feedback! Hopefully One day, I will get just one remark from you. Haha. I'll have a big party 😂.