Sign in Join

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

Mailing lists / lazarus / 2017-01

TIniPropStorage on Datamodule doesn't read and write ini file

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

frans

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?

mvg Frans van Leeuwen M 06-51695390

Reply by email

Michael Van Canneyt
to frans
frans wrote 9 lines
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.

Reply by email