Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2015-08

Persistent list to store objects

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

luciano de souza

Hello all,

There are several classes which manages lists. TCollection, TObjectlist, TFPGObjectlist... Does someone know if one of then can be saved as a file and reloaded again to an object?

Regards,

Luciano de Souza
Graeme Geldenhuys
to luciano de souza
luciano de souza wrote
Does someone know if one of then can be saved as a file and reloaded again to an object?

Use TtiObjectList as defined in the tiOPF (Object Persistence Framework). You can store the containing objects to CSV, TAB, multiple RDBMS or even over a 3-tier (HTTP) link. tiOPF can obviously do much more for you too.

http://www.tiopf.com

Source code lives on SourceForge.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/
Luiz Americo Pereira Camara
to luciano de souza: There are several classes which manages lists. TCollection, TObjectlist,…

TCollection with fpjsonrtti unit

See examples in packages/fcl-json folder

Luiz

"luciano de souza" wrote 14 lines
Hello all, There are several classes which manages lists. TCollection, TObjectlist, TFPGObjectlist... Does someone know if one of then can be saved as a file and reloaded again to an object? Regards, -- Luciano de Souza _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal