Or to avoid having to count up to n every time:

put fld tFld into tData
repeat for each line L  in tData
if [condition] then
  put "<p>" & L & "</p>" & cr after changedData  -- plain text
else
   put "<p><b>" & L & "</p></b>" & cr after changedData -- bold text
end if
end repeat
delete last char of changedData ---lose trailing cr
set the htmlText of fld tFld to changedData

On 25 Oct 2004, at 17:00, [EMAIL PROTECTED] wrote:

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

_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to