1

This is not a duplicate but a follow-up to "Persistent Objects in Windows XP/Delphi 7."

I need to persist more than one object in Delphi 7, and the objects are a class family. RRUZ's answer suggests I inherit from TPersistent and use TJvAppXMLFileStorage, but when I use its WritePersistent method, it overwrite one object with the next object in the XML file.

I have to save objects (TAlarms, and descendants) later in a database, so I have to recover them from the file.

How can I persist more than one object in the same file and then load these objects from the file?

Community
  • 1
  • 1
DelphiProgrammer
  • 269
  • 6
  • 11
  • 5
    Yulien, please stop posting the same thing over and over again in new messages, and stick to your original post http://stackoverflow.com/questions/1663166/persistent-objects-in-windows-xp-delphi-7 – Ken White Nov 04 '09 at 14:35
  • @Ken Good catch. I completely missed that. Voted to close – Mark Biek Nov 04 '09 at 14:44
  • @Mark: I only caught it because it's the third in two days on the same subject from the same poster. – Ken White Nov 04 '09 at 14:56
  • @MLB, See the new example to persist more than one object. http://stackoverflow.com/questions/1663166/persistent-objects-in-windows-xp-delphi-7 – RRUZ Nov 05 '09 at 00:33

0 Answers0