Adding stringgrid values

Posted by Sarah-Jayne on May 12, 2007

This is probably a very simple question for you, but I am very new to Delphi! I have a series of values within a stringgrid, in cells [1,1], [2,1] and [3,1]. I want to add these together to calculate the total value within these cells, and display this in cell [4,1]. I have tried various IntToStr, StrToInt combinations but as of yet have failed, instead of calculating the total values, the values are simply put together e.g. 1+2+3 = 123 instead of the correct answer of 6. Help would be very much appreciated!!!

Thanks a bunch, Sarah-Jayne.

Related articles

       

Follow Ups