Can you use .Contains(string) with a Select Case Statement?

Posted by Louise on Stack Overflow See other posts from Stack Overflow or by Louise
Published on 2010-04-15T17:58:04Z Indexed on 2010/04/15 18:03 UTC
Read the original article Hit count: 421

Filed under:
|
|
|
|

Is there anyway I can build a Select statement that uses the Contains function? Like this:

Select commentStr
    Case commentStr.Contains("10")
    Case commentStr.Contains("15")

© Stack Overflow or respective owner

Related posts about select

Related posts about select-case