Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Use select case to evaluate multiple expressions


'instead of this:
If a = True Then 'do this
If b = True Then 'do this
If c = True Then 'do this

'use this
Select Case True
   Case a
   Case b
   Case c
End Select