October 29th, 2011, 01:46 PM
[SOLVED] string.contains problems
Why doesn't this if-statement return as true :
If I debug, then txtWoord.Text = "word" and txtLaatsteLetterIngedrukt.Text = "w"
if (txtWoord.Text.Contains(txtLaatsteLetterIngedrukt.Text) == true)
If I try this :
Then the if-statement returns a true, so the problem is the argument, but what do I overlook?
if (txtWoord.Text.Contains("w") == true)
edit : found the solution, argument of contains() is case-sensitive
Last edited by da_cobra; October 29th, 2011 at 02:03 PM.
Reason: found solution
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!