Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Constants using hex
Message
 
 
To
19/03/2008 16:15:42
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01303578
Message ID:
01303687
Views:
18
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform