[Bug ?] Replace and TextStyle

Jeanne A. E. DeVoto jeanne at runrev.com
Thu Oct 3 23:24:02 EDT 2002


At 1:24 AM -0700 10/3/2002, Ludovic Thebault wrote:
>When i use the replace command (or replacetext) on a fld, the textstyle
>of the fld is set to plain.
>
>How prevent it ?

Try using replace on the htmlText of the field instead:

  get the htmlText of field "My Field"
  replace "foo" with "bar" in it
  set the htmlText of field "My Field" to it

(Of course, if your replace text may match a tag, things will be a little
more complicated....)

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/





More information about the Use-livecode mailing list