Notifications
Announcements
Is there a maximum number of items you can have in a switch statement? Looks like I might have approx 25 is this too many? does it affect performance?
@vffdd The documentation does not specify any limit. Also there no performance issues because only one branch of the Switch is going to be executed. But....
...having 25 branches doesn't seem very good design let alone maintainability of the code!
I agree with @CNT , perhaps there's a better way to do it? Care to share some specifics and maybe we can help?
Yeah you are right ! I need to have a think about it myself to see if a more efficient way 🙂 I'll come back to you as will prob need suggestions but going to work on it myself first.. thanks I'll leave this open for the moment if that's ok
@vffdd Let me know if you need any help to redesign!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Kalathiya 419
WarrenBelz 397 Most Valuable Professional
MS.Ragavendar 345 Super User 2025 Season 2