Changeset 4 for trunk/UInstance.pas
- Timestamp:
- Feb 3, 2011, 8:01:00 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UInstance.pas
r2 r4 6 6 7 7 uses 8 Classes, SysUtils, USource ;8 Classes, SysUtils, USource, Contnrs; 9 9 10 10 type 11 12 11 { TInstance } 13 12 … … 15 14 Id: Integer; 16 15 Name: string; 16 Downloaded: Boolean; 17 Compiled: Boolean; 17 18 IDESource: TSource; 18 19 IDERevision: string; … … 24 25 procedure Start; 25 26 procedure Update; 27 procedure Download; 28 end; 29 30 { TInstanceList } 31 32 TInstanceList = class(TObjectList) 33 function GetNewId: Integer; 26 34 end; 27 35 28 36 implementation 37 38 { TInstanceList } 39 40 function TInstanceList.GetNewId: Integer; 41 var 42 I: Integer; 43 begin 44 Result := 1; 45 for I := 0 to Count - 1 do 46 if TInstance(Items[I]).Id >= Result then 47 Result := TInstance(Items[I]).Id + 1; 48 end; 29 49 30 50 { TInstance } … … 45 65 end; 46 66 67 procedure TInstance.Download; 68 begin 69 70 end; 71 47 72 end. 48 73
Note:
See TracChangeset
for help on using the changeset viewer.