
27.05.2010, 22:55
|
Модератор
|
|
Регистрация: 17.04.2008
Сообщения: 8,107
Версия Delphi: 7, XE3, 10.2
Репутация: 49089
|
|
Циклом. Точнее 2мя.
Код:
For I := 0 To StringGrid1.Cols-1 Do
Begin
AMax := 0;
For J := 0 To StringGrid1.Rows-1 Do
If AMax < StrTofloat(StringGrid1.Cell[I,J]) Then
AMax := StrTofloat(StringGrid1.Cell[I,J]);
StringGrid2.Cell[I,0] := Floattostr(AMax);
End;
|