Hi again,
getting along with StringGrid fine although...
I configured StringGrid1 with the Object Inspector
The StringGrid displays my diverse calculation. All good.
Before loading next file I clear all Edits and so on.
When I do StringGrid1.Clear, it clears fine, but I can't
restore the original settings I did with Object Inspector.
The following lines leaves the first row0 (?) with titles ok,
loding new file OK, but it does not write again the results into
Row 1 - etc...
for c := spins downto 0 do begin
StringGrid1.DeleteRow(1);
StringGrid1.Refresh;
end;
The Grid is configured to have 100 rows to start with.
Well, how do I clear,clean or empty the written rows and start
again with the original code? (which of course fails after a StringGrid1.Clear event)
StringGrid1.Cells[1, spins] := Edit1.text;
StringGrid1.Cells[2, spins] := inttostr(spins);
StringGrid1.Cells[3, spins] := IntToStr(beton);
StringGrid1.Cells[4, spins] := IntToStr(wager);
StringGrid1.Cells[5, spins] := IntToStr(loss);
StringGrid1.Cells[6, spins] := IntToStr(win);
StringGrid1.Cells[7, spins] := IntToStr(budget);
StringGrid1.Cells[8, spins] := mode;
StringGrid1.Cells[9, spins] := Label1.Caption;
StringGrid1.Refresh;
Thanks for your consideration and time.
For better understanding see attachments.
Klaus