Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get low word from 32 bit value
Message
De
16/05/2006 09:14:03
 
 
À
16/05/2006 08:35:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01122157
Message ID:
01122192
Vues:
20
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform