How to check whether string contains values or not?

 Posted by Rajesh_Kumar on 1/16/2014 | Category: VB.NET Interview questions | Views: 2169 | Points: 40

We can check with Contains method of string.It returns true if text is there in a given string otherwise returns false.

we can check Contains method as:

Dim str As String = "Dot Net Funda"

If (str.Contains("Dot Net")) Then
End If

Output would be "True" because Dot net is present in a supplied string.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response