String contained within string
-
I have a test
if (element.Value.ToString().ToLower() == "home owner") { summaryHomeOwnerTextBox.Text = "Yes"; }
How can I test to see with the string "home owner" is contained within element.Value.ToString().ToLower() please? -
I have a test
if (element.Value.ToString().ToLower() == "home owner") { summaryHomeOwnerTextBox.Text = "Yes"; }
How can I test to see with the string "home owner" is contained within element.Value.ToString().ToLower() please?too lazy to read up on String class? :)
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
-
I have a test
if (element.Value.ToString().ToLower() == "home owner") { summaryHomeOwnerTextBox.Text = "Yes"; }
How can I test to see with the string "home owner" is contained within element.Value.ToString().ToLower() please? -
too lazy to read up on String class? :)
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
or even use the Intelisense of an IDE, there all pretty self explainitory methods and functions lol but hey, as im sure you know already, there are alot of people on these forums that just are'nt cut out for this kind of 'hard' work :laugh:
Life goes very fast. Tomorrow, today is already yesterday.