HOw to get htmltext from the field to display in another field

J. Landman Gay jacque at hyperactivesw.com
Sun Sep 20 16:11:30 EDT 2020


On 9/20/20 10:55 AM, Mark Wieder via use-livecode wrote:
> On 9/20/20 7:28 AM, Sannyasin Brahmanathaswami via use-livecode wrote:
>> Eureka! So easy, now to get back to the htmlText as per the code
>>
>> if the htmlText of field "mainText"  then
>>        put the htmlText of field "mainText" into field "mainText"
>>     else
>>        set the htmlText of field "mainText" to field "mainText"
>>    end if
>>
>> we wonder how easy it to tell that "if" the clause is telling it is "true"
>>
>>   if (set the htmlText of field "mainText" to field "mainText") then
>>
>> does not work
> 
> if field "mainText" is not empty then
> 

I think Swami wants a toggle, so it's likely the field won't ever be empty.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com





More information about the use-livecode mailing list