What I'd like to know from anyone is what the syntax would be for the following using the "repeat for" structure rather than "repeat with x = 1 to the number of..." structure.
on rawkeyup
repeat with x = 1 to the number of words of field "blueWhile"
if word x of field "blueWhile" is "while" then
set the textcolor of word x of field "blueWhile" to blue
set the textcolor of the last word of field "blueWhile" to black --resets black so ensuing words don't remain blue
end if
end repeat
end rawkeyup
On Mar 13, 2005, at 9:30 PM, Kevin J wrote:
Ok I was trying every thing that I could think of to get this to work. I was reading all the docs to see if I could figure it out but its not working. What I am trying to do is when someone types in the word "while" into the field"txtWindow" it will set that word to the color blue but all the other words will stay black. I can't figure it out for the life of me. Is there something that I can download to look at that as somthing almost the same?
Thanks
Kevin _______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution
