When using "repeat for each x in y" you MUST consider each of the referenced 
items (x and y) to be "read only."

>From the docs:

---
Important! In any of the for each loops, you should not change the 
labelVariable or container in a statement inside the loop. Doing so will not 
cause a script error, but will almost certainly produce unexpected results.
---

Additionally, you are trying to set the style of a variable, which would 
have no effect.

You would rather say:

repeat with i = 1 to the number of lines in fld "test"
    if word 1 of line i of fld "test" is "Sunday" then
        set the textStyle of line i of fld "test" to "bold"
    end if
end repeat 



_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to