Topic 1:
I have two Lists (listActual, listBudget) both storing decimal format numbers (like 3343.00, 0.00, -513.21). What is the data type i should use to store these kinds of values, the values in both these collections is coming from Get Text Activity (textActual, textBudget) so it’s in String Format.
Topic 2:
Another question is, how do I use these two lists (listActual, listBudget) as my end goal is to put them in an Excel against the desired columns (Actuals & Budget) respectively.
we recommend List(Of Double) and convert the strings into a double e.g.
CDbl(“123.45”), DoubleParse, Convert.ToDouble methods
prepare a datatable with e.g. Build DataTable - dtResult
then populate the different list values at column / row with the help of e.g. Add Data Row
write it to excel e.g. Write range activity
It’s simply based on your requirement, you can store whatever datatype you want. If you want the values in the list as string then you can directly add them to List variable.
Excel Application Scope (Provide Excel file path)
Build DataTable
For Each item in List
Add Data Row (item) to DataTable
Write Range