Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hex / Binary to Asc
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00883959
Message ID:
00884107
Vues:
11
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform