repeat loop and formatting question

Ken Ray kray at sonsothunder.com
Sat Nov 15 19:10:48 EST 2008


> How about
> 
> put fld 1 into tText
> replace "ck" with "<font><b>ck</b></font>" in tText
> replace "ch" with "<font><b>ch</b></font>" in tText
> replace "oa" with "<font><u>ch</u></font>" in tText
> replace "oo" with "<font><u>oo</u></font>" in tText
> ...
> set the htmltext of fld 1 to tText

Actually, you can type less by eliminating the <font> tags:

put fld 1 into tText
replace "ck" with "<b>ck</b>" in tText
replace "ch" with "<b>ch</b>" in tText
replace "oa" with "<u>ch</u>" in tText
replace "oo" with "<u>oo</u>" in tText


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/





More information about the use-livecode mailing list