Problem with setting htmlText of field to empty in LiveCode 6.6 RC2

Tim Bleiler bleiler at buffalo.edu
Wed Mar 19 10:37:28 EDT 2014


On Mar 19, 2014, at 10:30 AM, Mark Schonewille wrote:

> That's a matter of interpretation. By "clearing the htmlText" I mean "resetting it to "<p></p>".

On Mar 19, 2014, at 10:35 AM, Mark Schonewille wrote:

> Jacque,
> 
> In the past 15 years I never had any problems with htmlText always containing p tags, even if the text of the field was empty. Therefore, I think it is no bug.



It seems inconsistent by Livecode conventions, though. I hit it because I was doing a lot of htmlText work and the "null" condition came up so I just tested against the htmlText property instead of the text. When I discovered what was actually in the property I quickly moved on. But, I've been doing this for 20 years and it didn't really slow me down much but wouldn't a beginner be pretty confused by this?

Tim




More information about the use-livecode mailing list