[Lazarus] Examples of IniPropStorage?

David W Noon david.w.noon at ntlworld.com
Sun Feb 22 15:23:16 CET 2009


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!

-- 
Regards,

Dave  [RLU #314465]
=======================================================================
david.w.noon at ntlworld.com (David W Noon)
=======================================================================



More information about the Lazarus mailing list