Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert Hexadecimal to Decimal
Message
From
26/05/1998 17:00:55
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00102080
Message ID:
00102118
Views:
22
>>>>HI,
>>>>
>>>>How can i convert a hexadecimal to decimal value in VFP5?
>>>>
>>>>Thanks for any help in advances.
>>>Use the OX conversion format.
>>>
>>> cHexVal = '12AE'
>>> nDecVal = OX&cHexVal
>>>
>>>Fred
>>
>>What do you mean by ox conversion?
>>Is there a function i can use?
>>
>>Bye,
>It's a prefix notation you can use to represent hex numbers in VFP.
>
>Ox12AE (hex 12AE) Note: "0" is number zero
>
> is the same as
>
>4782 (decimal)
>
>You can use the TRANSFORM function to go from decimal to hex:
>TRANSFORM(4782,'@0') && 0x000012AE is a character string
>
>Fred

Thanks!
There had to be a function in fox to convert hex to dec.
Can it do the reverse hex to dec?
Previous
Reply
Map
View

Click here to load this message in the networking platform