Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO CASE equivalent?
Message
 
To
31/01/2000 16:51:44
General information
Forum:
Visual Basic
Category:
VBScript
Miscellaneous
Thread ID:
00324923
Message ID:
00325380
Views:
23
>Hi Jeff,
>
>>You may want to take a look at Select Case
>
>Thanks, I also found the handy ElseIf clause to the If statement. Any advantages-disadvantages you can think of?

The biggest advantage to the "Select Case" syntax is that the condition is evaluated only once and then compare multiple times.

Another advantage is that I find the "Select Case" statement clearer to read/debug.

But, once that said, I use if/elseif statement every day. If we don't compare the same value, we must use the if statement.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform