Nesting Select Cases
#1
Can Select Case segments be safely nested, by placing another Select Case segment inside one or more of the primary Cases? Or will they "contaminate", messing up the stack of operations for the program?
I know we can nest For...Next and If...Then, but it's not made clear in the Help file whether this is ok for Select Case.
I'm still exploring, so this would be helpful to know.
Reply
#2
(05-28-2022, 11:55 PM)PhilOfPerth Wrote: Can Select Case segments be safely nested, by placing another Select Case segment inside one or more of the primary Cases? Or will they "contaminate", messing up the stack of operations for the program?
I know we can nest For...Next and If...Then, but it's not made clear in the Help file whether this is ok for Select Case.
I'm still exploring, so this would be helpful to know.

Same thing with Select Case, just make sure the inner Select Case inclusive its respective End Select is entirely inside the same outer Case, hence same as with If..Then.
Reply
#3
Great; Thanks RhoSigma.
Now I can go play some more! Big Grin
Reply




Users browsing this thread: 1 Guest(s)