>>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only