properties vs local variable

Terence Heaford t.heaford at btinternet.com
Mon Mar 10 16:59:58 EDT 2014


Thanks for your help.

It did not work initially but a bit of google identified the # is not required with RGB colours.

However, when using this it only colours the bgcolor behind the text and not the whole field.

Here is my test script.

 put "255,255,255" into tFontColor
 put "62,117,215" into tBackColor
 put "This is my text" into tText
 put merge("<font color=[[quote]][[tFontColor]][[quote]] bgcolor=[[quote]][[tBackColor]][[quote]]> [[tText]] </font>") into tHTML
 set the htmlText of fld "result" to tHTML

As it’s HTML I am assuming it’s not possible to colour the whole field using this method?

All the best

Terry

On 10 Mar 2014, at 20:04, Peter Haworth <pete at lcsql.com> wrote:

> So using one of your examples you would set the htmltext of field x to
> "<font color="#255,255,255" bgcolor="#62,117,215"> this is my text </font>




More information about the use-livecode mailing list