I have two string values. I convert each one into double and subtract it as Convert.ToDouble(TeamTimeEntry)-Convert.ToDouble(BillHrs). and store it into a double variable Hrs using assign activity. But I am getting error as :
Assign: Input string was not in a correct format.
It might be cultureinfo matter. Can you try the following expressions? Only one of them will work, probably.
Convert.ToDouble(TeamTimeEntry, New System.Globalization.CultureInfo("en-US"))-Convert.ToDouble(BillHrs, New System.Globalization.CultureInfo("en-US"))
Convert.ToDouble(TeamTimeEntry, New System.Globalization.CultureInfo("fr-FR"))-Convert.ToDouble(BillHrs, New System.Globalization.CultureInfo("fr-FR"))
I just wrote it as an example. I use a for each row activity of data table db. Access the data as
TeamTimeEntry= data.item(0).ToString and BillHrs= data.item(1).toString.
Now need to convert into double and subtract it and assign result to a double variable