Can someone help me to solve this compile error

Can someone help me to solve this compile error

Hi @Lawrance_A,
Your Indexval is a generic value, that may have a different value as well which can not be converted as double sometimes. Better go with TryParse then convert it as double.
It’s solved. Thank you guys.
You should post how you solved it to help others peoples ![]()
Hello @MaxyArthes
you can use Invariant culture to convert string to double if the
" Convert.ToDouble(string)" function does not work.
You can use the code below;
“double.Parse(string, System.Globalization.CultureInfo.InvariantCulture)”
See screenshot for references