Function IsIn(ByVal val1 As String, ByVal text As String) As Boolean Dim ret As Boolean = False Dim temp() As String Dim separador As String = "," temp = Microsoft.VisualBasic.Split(text, separador) For Each b As String In temp If val1 = b Then ret = True Exit For End If Next Return ret End Function