Set the color of a sigle word in a field
mdswindell at charter.net
Mon Mar 14 07:39:25 CST 2005
I'm sure it's not the best way, but here's one way to make it happen:
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.
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
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?
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the use-livecode