Try to cast it to integer
oChart.Region(1).Caption.SetProperties("Up-to-date Rating", BITAND(0xFFF0F8FF, 0xFFFFFFFF), , 10, .T.)
>No luck. To be honest, I didn't actually try your suggestion in the #DEFINE. Instead I tried calling the method directly passing the hex value and got the following error:
>
>OLE error code 0x8002000a: Out of present range.
>
>This is what I tried:
>
>oChart.Region(1).Caption.SetProperties("Up-to-date Rating", 0xFFF0F8FF, , 10, .T.)
>
>Any other ideas or reasons this would not work?
>
>PS. If I substitute 0xFFF0F8FF with something like RGB(255,0,0) the method executes without any errors. So it looks like the hex value is not being interpreted correctly by the method.
>
>>Hi Mike,
>>
>>Try this:
>>
>>* Color constants
>>#DEFINE ColorAliceBlue 0xFFF0F8FF
>>#DEFINE ColorAntiqueWhite 0xFFFAEBD7
>>
--sb--