Link to home
Start Free TrialLog in
Avatar of Wigging
WiggingFlag for United States of America

asked on

IN Function

I have a session that returns this data below.

Is there a function in vb.net that i could find if  varvalue is inside varstring??

dim varvalue as string= "SALE"
dim varstring as string=",OR,SALE"


if varvalue WHATEVERFUNCTION varstring then TRUE
ASKER CERTIFIED SOLUTION
Avatar of tipsybroom
tipsybroom
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kaufmed
Also:
If varstring.IndexOf(varvalue) >= 0 Then
End If

Open in new window

To make it case insensitive

If varstring.ToLower.Contains(varvalue.tolower) Then