Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BITLSHIFT
Message
De
22/11/1999 12:23:11
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
BITLSHIFT
Divers
Thread ID:
00293960
Message ID:
00293960
Vues:
71
I am trying to use the bitlshift command to shift bits from a hexidecimal representation.

The following gives me what I expect

hexval = 0x00F00000
newhexval = bitlshift(hexval,4)
newhexval = transform(newhexval,"@0")

now newhexval = 0x0F000000

however this does not work

hexval = 0x0F000000
newhexval = bitlshift(hexval,4)
newhexval = transform(newhexval,"@0")

I expected newhexval to be 0xF0000000 but it ends up being a negative number. Is there something I am missing or not understanding?

Thanks.
David
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform