There is few ways to achieve that.
String.Contains Method[
^]
How to: Search Within a String (Visual Basic)[
^]
Depending on your needs, you can use special characters, like:
*
;
?
, etc.
If you want to find
a
in entire string, use:
result = stringVariable Like "*a*"
If you want to find
a
at the end of string, use:
result = stringVariable Like "*a"
If you want to find
a
at the beginning of string, use:
result = stringVariable Like "a*"
Please, see:
Like Operator (Visual Basic)[
^]
How to: Match a String against a Pattern (Visual Basic)[
^]
You can use
Regex[
^] too.
Converting Wildcards to Regexes[
^]