07-15-2020
08:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-15-2020
08:47 PM
Could someone inform me how how to modify this line of iLogic code:
Dim part_to_find As String = "scissors_for_under_21"
I need for this line of code to read "must INCLUDE" this bit of text as opposed to "must MATCH" this. Thanks for your attention.
Solved! Go to Solution.
07-16-2020
06:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-16-2020
06:02 AM
I'm not entirely sure this is a valid question...it may already be doing it and my code problems lie elsewhere.
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.