Hi
I tried to get the sum of all numbers in a column , its works the first time, but when click the second time it give an error

Thanks
I tried to get the sum of all numbers in a column , its works the first time, but when click the second time it give an error
Code:
function Done_Sum() Notes_Row = 1 Notes_Path = "AutoPlay\\Docs\\"..Unit.."\\"..Unit..EP.."\\"..Un it..EP.." Notes.csv" Grid.LoadFromFile("Notes Grid", Notes_Path, ",", true); Done_Sum = String.ToNumber(Grid.GetCellText("Notes Grid", Notes_Row, 11)); for Notes_Row = 2, 32 do Done_Sum = Done_Sum + String.ToNumber(Grid.GetCellText("Notes Grid", Notes_Row, 11)); end end
Thanks
Comment