I have flexgrid here.
I want the system to substract maximum value and minimum value for every row in flexgrid.
And the result will be displayed in column 'Julat'(pls see the attachment)
My problem here is, the value for the column is 0(for every row).
I cant figure out why is like that.
Pls help.
Thank U in advance.
as you have it ".Cols = 5" is returning a boolean (True/False) value depending on whether the grid has 5 columns or not.
This boolean value is converted into a number (-1 or 0) which is always less than 2, so the loop never starts, and the Max/Min are always both equal to their initial values.
I want to substract maximum value and minimum value which the values are from column 'Sampel1' to column 'Sampel5'(pls see attachment).
My prob is, the result for the subtraction for column 'Julat' (pls see the attachment)
is diiferent if I calculate manually.
For instance( row 5) :
Max value = 354
Min value = 10.6
Subtraction = 354 - 10.6 = 343.4
The answer should be 343.4, not 343
Row 6 :
Max value = 21.3
Min value = 2.5
Subtraction = 21.3 - 2.5 = 18.8
The answer should be 18.8, not 19
I cant figure out what is wrong with the code.
Please help.
Thank U in advance.