Changeset 22 for trunk/USystem.pas
- Timestamp:
- Jun 16, 2011, 12:18:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/USystem.pas
r21 r22 7 7 uses 8 8 Classes, SysUtils, SpecializedList, SpecializedDictionary, USqlDatabase, 9 Strings, UDataTypes, Dialogs, ComCtrls, StdCtrls ;9 Strings, UDataTypes, Dialogs, ComCtrls, StdCtrls, Controls; 10 10 11 11 const … … 51 51 ColumnName: string; 52 52 VirtualItem: Boolean; 53 Control: TWinControl; 53 54 end; 54 55 … … 597 598 NewColumn: TListColumn; 598 599 begin 599 AColumns.Clear; 600 while (AColumns.Count < Columns.Count) do 601 AColumns.Add; 602 while (AColumns.Count > Columns.Count) do 603 AColumns.Delete(AColumns.Count - 1); 600 604 for I := 0 to Columns.Count - 1 do 601 605 if not TReportColumn(Columns[I]).VirtualItem then begin 602 NewColumn := AColumns.Add; 603 NewColumn.Caption := TReportColumn(Columns[I]).Caption; 606 AColumns[I].Caption := TReportColumn(Columns[I]).Caption; 604 607 end; 605 608 end;
Note:
See TracChangeset
for help on using the changeset viewer.