Nesting Select Cases - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10) +---- Thread: Nesting Select Cases (/showthread.php?tid=500) |
Nesting Select Cases - PhilOfPerth - 05-28-2022 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. RE: Nesting Select Cases - RhoSigma - 05-29-2022 (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? 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. RE: Nesting Select Cases - PhilOfPerth - 05-29-2022 Great; Thanks RhoSigma. Now I can go play some more! |