es geht um folgenden Code:
Code: Alles auswählen
If k =2 THEN
BEGIN
StringGrid1.Cells[1,1]:=inttostr(Ergebnis_RG1);
StringGrid1.Cells[2,1]:=inttostr(Ergebnis_RG2);
StringGrid1.Cells[3,1]:=inttostr(Ergebnis_RG3);
StringGrid1.Cells[4,1]:=inttostr(Ergebnis_RG4);
StringGrid1.Cells[5,1]:=inttostr(Ergebnis_RG5);
end;
If k=3 THEN
BEGIN
StringGrid1.Cells[1,2]:=inttostr(Ergebnis_RG1);
StringGrid1.Cells[2,2]:=inttostr(Ergebnis_RG2);
StringGrid1.Cells[3,2]:=inttostr(Ergebnis_RG3);
StringGrid1.Cells[4,2]:=inttostr(Ergebnis_RG4);
StringGrid1.Cells[5,2]:=inttostr(Ergebnis_RG5);
end;
If k=4 THEN
BEGIN
StringGrid1.Cells[1,3]:=inttostr(Ergebnis_RG1);
StringGrid1.Cells[2,3]:=inttostr(Ergebnis_RG2);
StringGrid1.Cells[3,3]:=inttostr(Ergebnis_RG3);
StringGrid1.Cells[4,3]:=inttostr(Ergebnis_RG4);
StringGrid1.Cells[5,3]:=inttostr(Ergebnis_RG5);
end;
Viele Grüße
cRo