This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
I've to convert a integer value in Hexadecimal. But intrincic function AsHexString give back a wrong value.
can you help me understand if I am using the function incorrectly?
The value is 49202, Window Calc for HEX is C032 for lansa il 32C00000
Howdy! Agreed, it looks like the intrinsic method doesn't work. I created a quick form / routine to do the conversion; it isn't very elegant, but the uDec2Hex routine seems to return the correct value, so maybe you can use it as a starting point?
I noticed the octets seemed to be reversed as well. Personally, I would not use the code to reverse the errant values because you never know when LANSA might provide a correction to the intrinsic method in an EPC/upgrade, which would then cause the application to start returning incorrect results. That's just my opinion though.
Fix maybe a hot fix, clearly a defect, if you are in maintenance, try to get that. That will solve the issue for you and everyone trying to use the same intrinsic