Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decimal to hexadecimal
Message
De
10/08/2000 00:20:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00402852
Message ID:
00403246
Vues:
13
try this:

function asctobin(tnInput)
#define NIBBLES "0000000100100011010001010110011110001001101010111100110111101111"
local lcOutput
lcOutput = substr(NIBBLES, 1 + 4 * bitrshift(bitand(tnInput, 0xf0), 4), 4) + ;
substr(NIBBLES, 1 + 4 * bitand(tnInput, 0xf), 4)
return lcOutput
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform