Answer: 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
MsgBox("True")
Else
MsgBox("False")
End If
Output would be "True" because Dot net is present in a supplied string.
Asked In: Many Interviews |
Alert Moderator