Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get low word from 32 bit value
Message
From
16/05/2006 09:14:03
 
 
To
16/05/2006 08:35:47
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01122157
Message ID:
01122192
Views:
14
Carlos,

Can VFP 9's new BINTOC functions help you?

Here are some sample snippets:

* NumToULong
BINTOC(BITAND(m.tnNumber,0xFFFFFFFF),"RS")

* NumToUShort
LEFT(BINTOC(m.tnNumber,"RS"),2)

Malcolm

>I have an API function that "Returns a 32-bit value that consists of two 16-bit values. The low word specifies the length, in characters, of the text. The high word specifies the type of operation used to draw the text."
>
>If I just wanted to know the value of the low word, how do I do that in VFP? Or, more generally speaking, how do I separate the low word and the high word of a 32 bit value into two numbers?
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform