Check whether a value exists in string array

Madhu.b.rokkam
Posted by Madhu.b.rokkam under VB.NET category on | Points: 40 | Views : 13506
Dim val() as string={"a","b","c"}

Dim lst as new list(Of string)
lst.AddRange(val)

lst.Contains("b") this will return true if it exists else will return false.

Comments or Responses

Login to post response