Q & A
MSDN Visual Basic Community
quick question, quiz, Switch
Tips and Tricks
i_mod_10 = i Mod 10 j = Switch(i_mod_10 <= 2, 2, i_mod_10 <= 5, 5, i_mod_10 <= _ 8, 8, True, 9)
What does this code do?
Can you reformat this code so it's easier to understand?
Can you think of an alternative approach that's also easy to understand?
Which version is better?
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc. All rights reserved.