Changeset 7 for trunk/DbEngines/UEngineXML.pas
- Timestamp:
- Jan 20, 2015, 11:33:39 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DbEngines/UEngineXML.pas
r6 r7 11 11 { TDatabaseXML } 12 12 13 TDatabaseXML = class(TDatabase )13 TDatabaseXML = class(TDatabaseClient) 14 14 private 15 15 function GetFileName: string; … … 47 47 function TDatabaseXML.GetFileName: string; 48 48 begin 49 if Copy( ConnectionString, 1, 8) = 'file:///' then50 Result := Copy( ConnectionString, 8, High(Integer))49 if Copy(Database.ConnectionString, 1, 8) = 'file:///' then 50 Result := Copy(Database.ConnectionString, 8, High(Integer)) 51 51 else Result := ''; 52 52 end; … … 238 238 NewNode := FindNode('Tables'); 239 239 if Assigned(NewNode) then 240 LoadNodeTables( Tables, NewNode);240 LoadNodeTables(Database.Tables, NewNode); 241 241 end; 242 242 finally … … 259 259 NewNode := OwnerDocument.CreateElement('Tables'); 260 260 AppendChild(NewNode); 261 SaveNodeTables( Tables, NewNode);261 SaveNodeTables(Database.Tables, NewNode); 262 262 end; 263 263 ForceDirectoriesUTF8(ExtractFileDir(FileName)); … … 270 270 procedure TDatabaseXML.Load; 271 271 begin 272 inherited Load;273 272 if FileExists(FileName) then 274 273 LoadFromFile(FileName); … … 277 276 procedure TDatabaseXML.Save; 278 277 begin 279 inherited Save;280 278 SaveToFile(FileName); 281 279 end;
Note:
See TracChangeset
for help on using the changeset viewer.