Code: Select all
replace "section" with "SECTION" in myVariable
This can be done easily in a field by setting the textStyle of the word, but one has to know the chunk that the word of interest "lives" in:
Code: Select all
set the textStyle of word 2 of fld 2 to "underline"
Code: Select all
put "dog cat fish" into fld 2
replace "cat" with fld 1 in fld 2 --just "cat" appears, not the underlined "cat" of fld 1
replace "cat" with the htmlText of fld 1 in fld 2 --the minimally tagged "cat" appears
replace "cat" with the effective htmlText of fld 1 in fld 2 --the fully tagged "cat" appears