conditional formatting, how to do it

Rob Cozens rcozens at pon.net
Fri Jan 2 12:27:07 EST 2009


Sorry Peter,

>Try:
>
>         set the textStyle of line theLine of field "test" to "bold"

I forgot this was a "repeat for each"  :-[

Try

set the itemDelimiter to " "
put 0 into lineCount
repeat for each line theLine in field "test" of stack "Calendar"
   add 1 to lineCount
   if item 1 of theLine is "Sunday" then
     set the textStyle of line lineCount of field "Test" to "bold"
   end if
end repeat


Rob Cozens CCW
Serendipity Software Company

"And I, which was two fooles, do so grow three;
  Who are a little wise, the best fooles bee."

  from "The Triple Foole" by John Donne (1572-1631) 


More information about the use-livecode mailing list