Yep, use an array and loop through the values:
You could also make a String variable with all allowed text values and use the "String.Contains" function to check if e.Text is allowed. I like the array way better though.Code:Dim checkvalues(29) As String checkvalues(0) = "orcheck" 'etc Dim result As Boolean = False For Each value As String In checkvalues If e.Node.Text = value Then result = True Exit For End If Next




Reply With Quote