I have one small piece of the text styled with "box", by using
Code: Select all
set the style of char x to y of fld "name" to "box"
Code: Select all
set the style of char 1 to -1 of fld "name" to not "box"
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
set the style of char x to y of fld "name" to "box"
Code: Select all
set the style of char 1 to -1 of fld "name" to not "box"
Code: Select all
-- ON
set the textstyle of char x to y of fld "name" to "box"
-- OFF
set the textstyle of char x to y of fld "name" to empty
Why, Richmond? Box is as good as any other native textStyle.Beats me how you are setting the style to box in the first place:
Code: Select all
-- removes all box-textstyle (and only that) from a field
set htmltext of fld X to replaceText(the htmltext of fld X,"<\/?box>","")
Very close. In v5.5 (or thereabouts) textStyles became manipulatable independently of one another as Booleans, using array syntax.kaveh1000 wrote: ↑Sat Feb 08, 2020 12:24 pmCode: Select all
set the style of char 1 to -1 of fld "name" to not "box"
Code: Select all
set the textStyle["box"] of char 1 to -1 of fld "name" to false
Aha. I glossed over that, and should have known to look deeper into any of Richmonds posts.By the way Richmond's comment was just the confusion I caused by writing "style" rather than "textstyle"!