Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bitlshift(0xff, 24) doesn't work for me!
Message
De
27/10/2004 17:44:07
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00954994
Message ID:
00955061
Vues:
19
The BIT* functions work with 32 bit signed integers and you want unsigned 32 bit integer which VFP doesn't support. Depending on what you're trying to do, following may work for you
? VAL(TRANSFORM(bitlshift(0xff, 24), "@0"))
>I would like to shift a number between 0-255 to the left 24 times. When I do the following for example:
>
>
? bitlshift(0xff, 24)
>
>I should get: 4278190080
>
>However, I get the following number instead:
>-16777216
>
>How can I correct it?
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform