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?
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
I agree with @CNT , perhaps there's a better way to do it? Care to share some specifics and maybe we can help?
@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!