|
|
|
из Дельфи на C++ builder 6
|
|||
|---|---|---|---|
|
#18+
Народ поможите перевести фенкцию Дельфи на С++ builder 6 //Сортировка столбцов в StringGrid Procedure GridSort(StrGrid: TStringGrid; NoColumn: Integer); Var Line, PosActual: Integer; Row: TStrings; begin Renglon := TStringList.Create; For Line := 1 to StrGrid.RowCount-1 do Begin PosActual := Line; Row.Assign(TStringlist(StrGrid.Rows[PosActual])); While True do Begin If (PosActual = 0) Or (StrToInt(Row.Strings[NoColumn-1]) >= StrToInt(StrGrid.Cells[NoColumn-1,PosActual-1])) then Break; StrGrid.Rows[PosActual] := StrGrid.Rows[PosActual-1]; Dec(PosActual); End; If StrToInt(Row.Strings[NoColumn-1]) < StrToInt(StrGrid.Cells[NoColumn-1,PosActual]) then StrGrid.Rows[PosActual] := Row; End; Renglon.Free; end; ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.04.2006, 14:00 |
|
||
|
из Дельфи на C++ builder 6
|
|||
|---|---|---|---|
|
#18+
Я бы посоветовал, прежде чем, пытаться (просить) переводить эту функцию с Delphi на C++, добиться того, чтобы она была РАБОТОСПОСОБНА, чего в данном случае, на первый взгляд, не наблюдается. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.04.2006, 14:43 |
|
||
|
|

start [/forum/topic.php?fid=57&msg=33671221&tid=2031510]: |
0ms |
get settings: |
10ms |
get forum list: |
19ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
38ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
59ms |
get tp. blocked users: |
1ms |
| others: | 241ms |
| total: | 390ms |

| 0 / 0 |
