Changeset 110 for trunk/Score.pas
- Timestamp:
- Dec 10, 2024, 11:05:12 AM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Score.pas
r109 r110 4 4 5 5 uses 6 Classes, SysUtils, Generics.Collections, RegistryEx ;6 Classes, SysUtils, Generics.Collections, RegistryEx, ListViewSort; 7 7 8 8 type … … 31 31 procedure SaveToRegistry(Reg: TRegistryEx; RegContext: TRegistryContext); 32 32 procedure LoadFromRegistry(Reg: TRegistryEx; RegContext: TRegistryContext); 33 procedure AssignToList(List: TObjects); 33 34 end; 34 35 … … 121 122 end; 122 123 124 procedure TScores.AssignToList(List: TObjects); 125 var 126 I: Integer; 127 begin 128 while List.Count > Count do List.Delete(List.Count - 1); 129 for I := 0 to List.Count - 1 do List[I] := Items[I]; 130 while List.Count < Count do List.Add(Items[List.Count]); 131 end; 132 123 133 end. 124 134
Note:
See TracChangeset
for help on using the changeset viewer.