Logo

Programming-Idioms

History of Idiom 39 > diff from v50 to v51

Edit summary for version 51 by programming-idioms.org:
Restored version 47

Version 50

2020-06-11, 13:16:15

Version 51

2020-06-15, 21:14:03

Idiom #39 Check if string contains a word

Set boolean ok to true if string word is contained in string s as a substring, or to false otherwise.

Idiom #39 Check if string contains a word

Set boolean ok to true if string word is contained in string s as a substring, or to false otherwise.

Variables
ok,word,s
Variables
ok,word,s
Code
MessageBox.Show("Hola");
Code
var ok = s.Contains(word);