Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decimal to hexadecimal
Message
From
10/08/2000 00:20:47
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00402852
Message ID:
00403246
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform