Use Select Case to Evaluate Different Expressions

Select Case is commonly used to check different values of a specific variable or expression. You can also use Select Case to evaluate multiple expressions, by starting out with “Select Case True” and listing each expression as a separate “Case”:

 Select Case True	Case Option1(0).Value		'Do something	Case Option1(1).Value		'Do something	Case Option1(2).Value		'Do somethingEnd Select
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist