I'm learning Progress 4GL.
Is there anyway to make a calculator that can convert Hexadecimal to binary and the otherway around in Progress 4GL?
I just need a calculator that can convert Hexadecimal to binary and the otherway around. Thanks
I'm learning Progress 4GL.
Is there anyway to make a calculator that can convert Hexadecimal to binary and the otherway around in Progress 4GL?
I just need a calculator that can convert Hexadecimal to binary and the otherway around. Thanks
nwahmaet
On
If you are running a reasonably modern version of OpenEdge, you can use the shipped MathUtil's IntToHex and HexToInt methods. See https://documentation.progress.com/output/oehttpclient/oe127/OpenEdge.Core.Util.MathUtil.html and https://github.com/progress/ade/blob/release-12.7.x/corelib/OpenEdge/Core/Util/MathUtil.cls
Copyright © 2021 Jogjafile Inc.
Converting back and forth between binary and hexadecimal is fairly straightforward. You just need to convert groups of four binary numbers to their hex equivalent, and hex digits to their binary equivalent. These two procedures will do that.