Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hex format
Message
 
To
03/02/1999 15:44:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00183603
Message ID:
00183620
Views:
17
Denis,

The Retrieval by message number is a PUTM feature, but not the calendar. You should be able to track down this message by date using the calendar icon on the left. Any way, here is the original post:

[Visual FoxPro in general] Re: Hex conversion Thread #139908 Message #140024
From
Christof Lange
The Foxpert!
09/23/1998 3:42:31 pm
To
John Koziol
Advanced Systems Design
09/23/1998 3:28:49 pm
Heya John,

>> CHR(0xHH)
>
>What would be the opposite? By the way, neat!

TRANSFORM(ASC(cChar),"@0")

This would give you a string with the hex representation of cChar, but it returns always a long, eg. 0x00000041. If you need only a byte you can use:

"0x"+RIGHT(TRANSFORM(ASC(cChar),"@0"),2)

And if you want to convert this hex-string into a number again, you can use

EVALUATE(cHexstring)

Christof

>Hi Ken,
>This option is part of the PUTM. Please repost this message for me.
>Thanks.
>
>>Hi Denis,
>>
>>Take a look at Christof Lange's post on 09/23/1998 3:42:31 pm, message # 140024.
>>
>>>Hi
>>>How i can present my numeric variable in hex format ?
>>>In VB it is HEX() function... In VFP ?
>>>Thanks.
>>>Denis.
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Reply
Map
View

Click here to load this message in the networking platform