manipulating attributes of text in fields from scripts

Richard Gaskin ambassador at fourthworld.com
Mon Apr 10 20:56:03 EDT 2017


To clear all styles, links, etc.:

   put field "Whatever" into field "Whatever"

To clear only bold and leave everything else:

   set the textStyle["bold"] of char 1 to -1 of fld "Whatever" to false

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list