[Lazarus] Store empty string property in *.lfm

Luiz Americo Pereira Camara luizmed at oi.com.br
Tue Jun 22 19:12:15 CEST 2010


theo escreveu:
> Hello
>
> Is it possible to store an empty string property?
>
> The property is getting a default value a creation time (GetUserDir),
> If the user enters an empty string to the obj. insp. it is shown as 
> empty but still has the value it got at creation time when run.
>
> I've tried things like:
> property Directory: string read FDirectory write SetDirectory stored 
> True nodefault;
>
> but it doesn't work. Empty String is never stored it seems.
>
> Am I missing sth.?

I've got same problem with VTV: 
http://thread.gmane.org/gmane.comp.ide.lazarus.general/38378

See  TCustomVirtualStringTree.Create in VitualTrees at lazarus-ccr for a 
solution

Luiz




More information about the Lazarus mailing list