Changeset 229 for oup/current/FileClasses/_Extensions.pas
- Timestamp:
- Jun 20, 2007, 12:57:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/FileClasses/_Extensions.pas
r228 r229 7 7 private 8 8 FConnectionID: Integer; 9 FExt: String; 9 10 FFiles: array of Integer; 10 11 function GetFile(ID: Integer): Integer; … … 13 14 constructor Create(ConnectionID: Integer; Ext: String); virtual; 14 15 procedure InitList; 16 property Ext: String read FExt; 15 17 property Files[ID: Integer]: Integer read GetFile; 16 18 property FileCount: Integer read GetFileCount; 17 19 end; 20 21 TExtensions = array of TExtension; 22 18 23 19 24 … … 26 31 27 32 constructor TExtension.Create(ConnectionID: Integer; Ext: String); 33 begin 34 FConnectionID := ConnectionID; 35 FExt := Ext; 36 end; 37 38 function TExtension.GetFile(ID: Integer): Integer; 39 begin 40 Result := FFiles[ID]; 41 end; 42 43 function TExtension.GetFileCount: Integer; 44 begin 45 Result := Length(FFiles); 46 end; 47 48 procedure TExtension.InitList; 28 49 var 29 50 files: TStrings; … … 50 71 end; 51 72 52 function TExtension.GetFile(ID: Integer): Integer;53 begin54 Result := FFiles[ID];55 end;56 57 function TExtension.GetFileCount: Integer;58 begin59 Result := Length(FFiles);60 end;61 62 procedure TExtension.InitList;63 begin64 Exit;65 end;66 67 73 end.
Note:
See TracChangeset
for help on using the changeset viewer.