Einzelnen Beitrag anzeigen

Benutzerbild von Binärbaum
Binärbaum

Registriert seit: 19. Jan 2005
Ort: Elstra
764 Beiträge
 
Delphi 7 Enterprise
 
#2

Re: StringGrid nach StrigGrid

  Alt 24. Feb 2005, 06:42
In etwa so:
Delphi-Quellcode:
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[i,j]:= Form1.StringGrid2.Cells[i,j];
end;
MfG
Binärbaum
There are exactly 10 kinds of people: those who understand binary, and those who don't.
---
"Software reift beim Kunden. Bei Hardware ist es anders: Hardware fault beim Kunden." - Rainer G. Spallek
  Mit Zitat antworten Zitat