[Lazarus] TIniPropStorage on Datamodule doesn't read and write ini file

Michael Van Canneyt michael at freepascal.org
Sun Jan 29 11:57:34 CET 2017



On Sat, 28 Jan 2017, frans via Lazarus wrote:

> Hi.
>
> I'm using Lazarus 1.6.2 with FPC 3.0.0. I use TIniPropStorage on a Form 
> module and reading the value from and writing the value to the ini file 
> works fine. Now I've tried to place the TIniPropStorage component on a 
> Datamodule. The component itself works, it shows me the default value. 
> But reading and writing the ini file is not happening, there is no file. 
> But there are also no errors.
> Is this a bug? Am I forgetting something?

Using TIniPropStorage on a datamodule is not supported out of the box.

You can use it, but you'll have to call the necessary methods for saving and
restoring the state yourself.

Michael.


More information about the Lazarus mailing list