>>>How to get Hex to Dec and viceversa ? Any generic routine avl..
>>>
>>Hi Vinod,
>>
>>Use the following:
>>* Hex to decimal
>>* lchex is a hexidecimal value
>>lnvalue = EVALUATE(lchex)
>>* Decimal to Hex
>>lchex = TRANSFORM(lnvalue, "@0")
>
>I really can't beleive it !!
>
>I thought it will be a big complicated routine, buts its much simpler then I thought....
>
>Thanks a lot !!
Anytime. BTW, lchex mentioned about is a string and it should begin with '0x'. You can assign a hex value directly with lnvalue = 0xF2 (for example).
George
Ubi caritas et amor, deus ibi est