strange htmltext problem

Klaus on-rev klaus at major.on-rev.com
Tue Sep 18 10:59:05 EDT 2012


Hi Mike,

Am 18.09.2012 um 16:55 schrieb Mike Bonner <bonnmike at gmail.com>:

> instead, try it with styledtext
> If you set things how you want then
> put the styledtext of field 1 into myWhateverArray
> 
> you can then set the styledtext of field 1 back to the array

ah, thanks!
"styledtext", hmm, looks its time to read up the new field features :-D

Anyway, I consider this a bug with htmltext!

> On Tue, Sep 18, 2012 at 8:37 AM, Klaus on-rev <klaus at major.on-rev.com>wrote:
> 
>> Hi friends,
>> 
>> I have a strange htmltext problem with LC 5.52 while working on a rating
>> thing (5 stars etc..) with a LOCKED field :-)
>> 
>> I have this script:
>> on mouseUp
>>   put "12345" into fld 1
>>   repeat with i = 1 to 5
>>      set the imagesource of char i of fld 1 to 1005
>>   end repeat
>> end mouseUp
>> 
>> Works fine, 5 white stars appear, and when I check the htmltext of fld 1 I
>> get:
>> RETURNS added for readability
>> <p>
>> <img src="1005" char="1">
>> <img src="1005" char="2">
>> <img src="1005" char="3">
>> <img src="1005" char="4">
>> <img src="1005" char="5">
>> </p>
>> 
>> Fine so far, but when I set the htmltext of that field to the (Livecode
>> approved?) string above, only ONE star appears
>> and the htmltext reports:
>> <p>
>> <img src="1005" char="12345">
>> </p>

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com





More information about the use-livecode mailing list