Hey guys, maybe you could help shed some light on an issue I ran into while running a program of mine tonight.
I have built countless programs around downloading webpage data and parsing it to retrieve data, but during a running of one of my programs tonight I got an error message. Well the error message happened due to a value equaling -1. Now I didn't put a check in there because that value should never equal -1.
But then I realized that my program had an issue. I have an if statement that contains a String.Contains check. The check triggered true, DESPITE the fact that the string I was checking for did not even remotely existing in the other string.
See, I even have a picture of the flaw (with some shotty photoshop work)
https://lh3.googleusercontent.com/-Z0avVqJiNCs/Ua8FABqfW_I/AAAAAAAADk4/p8mN6P7Atuw/s1680/StringContainTriggeringWrong_EDIT.png
So can someone help me out here. Did I just stumble on a bug, is this a known problem when using String.Contain or what cause right now this has me scratching head