I am having trouble now where I am trying to compare between two double variables from datatable. Assuming I have initial value as 1.2 and I set it as minimum and the value from datatable (double datatype) is 1.0,1.4,0.3.
minimum = 1.2, when compare the first value with minimum, it should be the new minimum = 1.0. However I am having problem where it can compare and print the new minimum but it does not replace the new minimum value
Use a excel application scope and pass the file path as input and inside the scope use a read range activity and get the output as datatable dt
Let’s take like you have a string variable named minimum which is equal to “1.2” and now let’s create a new column in that datatable dt to mention the new minimum value
Use add data column activity where mention the column name as “Result” and datatable as dt
Now use a FOR EACH ROW activity and pass dt as input
As an alternate use the min() function within a single Assign acitvity: myMin = dtData.AsEnumerable(Function (x) CDbl(x(YourColNameOrIndex).toString.Trim))
To be honest, im amazed by your method of solving this problem. I wish i could be at your level of knowledge, can I know the methods used in the solution ?