Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Constants using hex
Message
 
 
To
19/03/2008 21:28:13
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01303578
Message ID:
01303805
Views:
20
>No. That wouldn't be my idea of fun. I simply started wtih the PowerBasic version of an include file that had those constants defined as noted in my original message. This file was included with RMChart's samples.
>
>I'm assuming that PowerBasic (in combination with RMChart) somehow handled those definitions correctly and VFP cannot without removing the leading FFs.

0xFFF0F8FF is an integer with decimal value of -984833 but VFP interprets it as 4293982463. As I showed in one of the previous messages, BITAND(0xFFF0F8FF, 0xFFFFFFFF) takes care of that problem by correctly casting the value to the integer.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform