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?