Changeset 7 for trunk/UCore.pas
- Timestamp:
- Jan 20, 2015, 11:33:39 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r6 r7 13 13 14 14 TCore = class(TDataModule) 15 APreferences: TAction; 15 16 AExit: TAction; 16 17 ActionList1: TActionList; … … 99 100 I: Integer; 100 101 NewDatabase: TDatabase; 102 Engine: TDatabaseEngine; 101 103 begin 102 104 Databases.Count := XMLConfig1.GetValue('Database/Count', 0); 103 105 for I := 0 to Databases.Count - 1 do begin 106 Engine := Core.Engines.FindByName(XMLConfig1.GetValue('Database/Item' + IntToStr(I) + '/Engine', '')); 107 104 108 NewDatabase := TDatabase.Create; 109 NewDatabase.Engine := Engine; 105 110 NewDatabase.Name := XMLConfig1.GetValue('Database/Item' + IntToStr(I) + '/Name', ''); 106 111 NewDatabase.ConnectionString := XMLConfig1.GetValue('Database/Item' + IntToStr(I) + '/ConnectionString', ''); 107 NewDatabase.Engine := Core.Engines.FindByName(XMLConfig1.GetValue('Database/Item' + IntToStr(I) + '/Engine', ''));108 112 Databases[I] := NewDatabase; 109 113 end;
Note:
See TracChangeset
for help on using the changeset viewer.