07-16-2020
06:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-16-2020
06:10 AM
Correct, your issue is somewhere else in the code. That line only creates the string, you need to compare the string elsewhere.
Dim strString As String = "teststring" If strString.Contains("test") Then 'Do stuff if string contains "test" End If If strString = "test" Then 'Do stuff if string is "test" End
In this code, the first statement is true, but not the second.