[fpc-pascal] Persistent lists to save records

luciano de souza luchyanus at gmail.com
Mon Sep 22 18:38:50 CEST 2014

Hum... It's a very good idea. Firstly, I thought in something like a
persistent list with LoadFromFile and SaveTofile methods, but this
approach is really simple and useful.

2014-09-22 13:01 GMT-03:00, leledumbo <leledumbo_cool at yahoo.co.id>:
>> So my question is: which are the easiest way to save records without this
> limitation?
>> Is there something like a persistent list?
> Not with static data record. That one do only support shortstrings, because
> it contains actual data. Other strings are just pointers, which will be
> saved as pointers as well, thus cannot be used for things like this. For
> dynamic data, you have to work a little harder by using untyped file.
> Dynamic data can easily be represented as length followed by data. Length
> can be 1-n bytes, depending the maximum length of data you want to support.
> --
> View this message in context:
> http://free-pascal-general.1045716.n5.nabble.com/Persistent-lists-to-save-records-tp5720142p5720144.html
> Sent from the Free Pascal - General mailing list archive at Nabble.com.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Luciano de Souza

More information about the fpc-pascal mailing list