>I am trying to assign the forecolor to a textbox called poltotal in the click event of a checkbox. I have tried the syntax below and many varients. Anyone know how to format this?
>
>THISFORM.POLTOTAL.FORECOLOR = [255,0,0]
Actually, rgb(255, 0, 0) evaluates to 255, so
THISFORM.POLTOTAL.FORECOLOR = 255
or if you want it more clear, in hex:
THISFORM.POLTOTAL.FORECOLOR = 0x0000ff
Just bear in mind that actual order of storing color values as integers is BGR, so it's blue*65536 + green*256 + red (was it Jim Booth who pointed that to me a year ago or more, or someone else?).
Of course, you don't have to calculate these numbers, you can still use rgb(255, 0, 0).