Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hex conversion
Message
From
23/09/1998 14:40:51
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00139908
Message ID:
00139988
Views:
25
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
Previous
Reply
Map
View

Click here to load this message in the networking platform