I’m facing a issue when I try to convert string to integer:
1/ first of all, I get my value from a webpage. Always number display as “3 183” or “123 719”. Information is stored in var1 (generic).
I need to convert my var1 in order to compare it to an other variable that come from Excel (without blank).
2/ I try to remove the blank by using replace method: var1.ToString.Replace(" “,”"), but the blank character is still there
In addition, I try to convert directly by Convert.ToInt32(var1.ToString), but I get error message : “Input string was not in a correct format”
I think my var1 contains special character…
Do you have any ideas ?
Thanks for your help