Forum: Sonstige Fragen zu Delphi
Delphi
by Binärbaum,
24. Feb 2005
War mir fast schon klar, dass da jemand eine einfachere/ bessere Lösung hat. :) Die Frage ist nur, ob dieser Code auch wirklich schneller ist, da Rows ja auch auf die einzelnen Felder einer Zeile zugreifen muss, oder nicht? :gruebel:
Forum: Sonstige Fragen zu Delphi
Delphi
by Binärbaum,
24. Feb 2005
In etwa so:
var i, j: Integer;
begin
Form2.StringGrid2.ColCount:= Form1.StringGrid2.ColCount;
Form2.StringGrid2.RowCount:= Form1.StringGrid2.RowCount;
for i:=0 to Form1.StringGrid2.ColCount-1 do
for j:=0 to Form1.StringGrid2.RowCount-1 do
Form2.StringGrid2.Cells:= Form1.StringGrid2.Cells;
end;