Replacing Text

Warren Kuhl warrenkuhl at gmail.com
Mon Jan 25 12:20:12 EST 2010


I am trying to replace a selected chunk of text with the selectedchunk
of text and some html codes.  I tried the code below and the software
doesn't like this.

replace the selectedtext of field "field" with "<b>" & the
selectedtext of field "field" & "</b>" in the selectedchunk of field
"field"

I could use:
replace the selectedtext of field "field" with "<b>" & the
selectedtext of field "field" & "</b>" in field "field"
...but the replace would replace all occurrences of the text in my
field...instead of just the selectedchunk.

How would I accomplish this?  I assume it is something simple.

Warren



More information about the use-livecode mailing list