I’ve created a project that does a simple calculation and stores the result in a variable.
It then repeats the calculation on increasing numbers by incrementing +1 each loop, during a condition until it reaches a certain number.
I’d like to store the result of each loop somewhere, and was thinking a simple datatable, with just 1 column, however I’m struggling with the syntax in Add Data Row.
After one loop of the calculation is complete, the result is stored in a variable called ‘CurrentAnswer’ (double, as it has decimals).
I’d like to store the value of ‘CurrentAnswer’ in a row of a datatable, then loop through and store the next value of CurrentAnswer in the next row and so on until the condition mentioned above is met.
The datatable is called DT, with 1 column called ‘Result’ (type – double)
What syntax do I use in the DataRow properties of the Add Data row activity?