Speed in setting text styles [2]

FlexibleLearning at aol.com FlexibleLearning at aol.com
Mon Oct 25 12:09:27 EDT 2004


Aaargh! Blasted html-format 'intelligent' emails!
Replace the [ and the ] with normal tag angle-brackets...
 
 
Hi Jim:

I'd try using the htmlText as  the variable...

put fld tFld into tHTML
repeat for each line L in  tHTML
add 1 to n
if [condition] then next repeat
replace "[p]" with "[p][b]" in line n of tHTML
replace "[/p]" with  "[/b][/p]" in line n of tHTML
end repeat
set the htmlText of fld tFld to  tHTML

Is there a speed improvement using this approach?

/H
 
Hugh  Senior
The Flexible Learning Company
Web: _www.FlexibleLearning.com_ (http://www.flexiblelearning.com/) 
E: _h at flexiblelearning.com_ (mailto:h at flexiblelearning.com) 
T/F:  +44(0)1483.27 87 27


More information about the use-livecode mailing list