Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hex / Binary to Asc
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00883959
Message ID:
00884107
Views:
10
Mike,

Look at the BitAND() and BitOR() functions, they allow you to turn off and on individual bits:
i = 0
i = bitor( i, 0x1000 )
? i && 4096
i = bitor( i, 0x010F )
? i && 4367
i = bitand( i, bitnot( 0xF0F0 ) )
? i && 271
>Working on credit card authorizaiton program that requires bitmap settings. Looking for a sample or a function to convert Hex or Binary to Chr. I have to set bits to 0 or 1 based on the program requirements and have to send back the matching character.
>
>Example:
>
>ReturnValue = HexToChr("6C")
>ReturnValue = BinToChr("01101100")
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform