[Lazarus] Examples of IniPropStorage?
Michael Van Canneyt
michael at freepascal.org
Sun Feb 22 15:26:43 CET 2009
On Sun, 22 Feb 2009, David W Noon wrote:
> On Sun, 2009-02-22 at 13:39 +0100, Michael Van Canneyt wrote:
>
> > On Sat, 21 Feb 2009, David W Noon wrote:
> >
> > > Name_field.Text := Ini_props.ReadString('Name', '<missing>');
> > >
> > > The second approach has much neater syntax, plus it allows me to specify
> > > a default value if the required section of the .INI file lacks a value
> > > for that key. But I get access violations when the .INI file is empty.
> >
> > Attached is a patch for propertystorage; Could you please test if
> > you still get the access violation when the patch was applied ?
>
> That patch fixes the problem. Many thanks!
In that case:
To the Lazarus Crew: OK if I commit the patch ?
Michael.
More information about the Lazarus
mailing list