Code: Select all
answer color with "blue"
answer it
set the textcolor of field "text" to it
Here's what's happening.
the first line opens the color dialog with blue selected as default
(blue just happens to be 0,0,255 in RGB values)
When you click "OK" it assigned the blue value (assuming you didn't select another color while the dialogs open) to it
the second line opens a dialog wit it as the dialog test...the color values. When you click "ok" ( default dialog button) to close the "answer" dialog it assigns "OK" (the value clicked) to it
the third line tries to set the textColor to "OK" ...obviously not a color value that is recognized like 0,0255 or "blue"
Just remove the middle "answer it" and "it" from line one is not replaced with "OK" and it works fine
hope this is clear
Russ