Is there a way to convert some code like this:
If someString <> \"02\" And someString <> \"03\" And someString <> \"06\" And someString <>
Would Contains work?
Dim testAgainst As String() = {"02","03","06","07"} If Not testAgainst.Contains(someString) Then btnButton.Enabled = False End If