19 Sep 2017 by OriginalGriff
Most likely, it's that you are converting a value to a string: if it's a number like 54, then ToString will convert it to "54" - which is not the same value as the "054" you are comparing against. So start with the debugger, and find out exactly what the value in capturemethodtoeci actually is...