how would i say something like "if part of text1.text is "bob" then text2.text is "random"" or something like that?
Printable View
how would i say something like "if part of text1.text is "bob" then text2.text is "random"" or something like that?
If InStr(Text1.Text,"bob") > 0 Then Text2.Text = "random"
You can also use the Like operator:VB Code:
If Text1.Text Like "*bob*" Then '... do something End If