Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hex conversion
Message
De
23/09/1998 14:40:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00139908
Message ID:
00139988
Vues:
26
Hi Joe ---

ASCII? Don't you mean numeric conversion from hex to base 10 decimal? If so:
*** Convert From Hex to Dec
PROCEDURE HexToDec
LPARAMETERS cHexValue
LOCAL nDecValue,i
nDecValue=0
FOR i = 1 TO LEN(cHexValue)
   nDecValue=nDecValue+((AT(SUBSTR(cHexValue,i,1),"0123456789ABCDEF")*(i-1))
ENDFOR
RETURN nDecValue
>I am exporting data to another software program that uses hex as delimiters is there anywhere i can find ascii or equivalent conversions
>or how would i know what to use. Suggestions would be appreciated
>thank you in advance
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform