Topic: Check of the last line in StringGrid
At me the table (44, on 1 fix is made. To a line and a column) into which the data is entered, after filling, I push the button and in the table there is a line "Total" with the totals of these 3 columns, then I should transfer this line to other table - with it problems are not present. The problem that that spanning button, throws off the last line independently because, whether is in 0th column a word "Total" or not - and throws off, I wrote the code, but an error that the line "Total" is not present, appears anyway.
The check code on presence of a line "Total":
for i: = stringgrid1.RowCount downto stringgrid1.RowCount-1 do
if stringgrid1.Cells [0, i] <> ' the Total ' then begin showmessage (' There are no cycle totals '); exit; end;
Help please with the given dilemma = /