I am using regex to get an amount from an invoice. Assing activity: Value = System.Text.RegularExpressions.Regex.Match(file,“(?<=Importe solicitado a devolver )(\d|.|,)*”).Value.ToString.
After that, I want to convert the variable Value to Val (Double), so I can multiply the amount by -1 and paste in an exce file.
The problem appears at assigning Val = Convert.ToDouble(Value). It appears this message: “The input string is not in the correct format.”.
@Angel_Llull
internally the Double is definining the decimal seperator with a dot and the group seperator with a comma (line2 in screenshot). That’s why the exception is raised
Local specific formatings can be handled with the cultureInfo (Line1 in screenshot)