On Thu, 20 May 2010, Joost van der Sluis wrote:

On Thu, 2010-05-20 at 11:48 +0200, Michael Van Canneyt wrote:

On Thu, 20 May 2010, Joost van der Sluis wrote:

> On Wed, 2010-05-19 at 17:35 -0300, Leonardo M. Ramé wrote:
>> Hi, I'm trying to create a non-default action that must be executed when
>> the url is /cgi-bin/myprogram?action=ShowListing. When I change the
>> Content-property to "ShowListing" it automatically adds an #10 character
>> at the end, this can be easily see in the lfm file as follows (also note
>> that Contents.strings is added by Lazarus -not by me-):
>
> Problem is that the 'content' property is in fact Contents.Text. So this
> information is stored twice in the lfm. And an end-of-line character is
> added.
>
> I don't know why both properties are there. Michael, do you know this?

For ease of use; But only one should be stored. Maybe one should be made
public ?

That way you can't use it in the Lazarus object inspector. Defeating the
'ease of use' ?

I really have no preference here; At the very least we should solve
the discrepancy between the 2 methods. This can be as simple as adding
a 'Stored: False' to Contents property and reversing the process:
Contents stores it's content in 'Content' with each 'OnChange'. And then only 'Content' will be written.

Michael.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to