HELP: VB hex function equivelant
Hey, would anyone know if its possible to duplicate the VB hex function command in nsis?
Thanks
Archive: HELP: VB hex function equivelant
HELP: VB hex function equivelant
Hey, would anyone know if its possible to duplicate the VB hex function command in nsis?
Thanks
What exactly does this hex function do? If it converts a number to a hex string use:
IntFmt $0 "0x%X" "put number here"
Returns a String representing the hexadecimal value of a number.
Example:
Dim MyHex
MyHex = Hex(5) ' Returns 5.
MyHex = Hex(10) ' Returns A.
MyHex = Hex(459) ' Returns 1CB.
*description from MS
There isn't one...well at least that I know ...
The example provided by Kichik does exactly what dselkirk asks for.
On the other hand, I am not sure if there is a function that does the reverse, i.e., take a hex value and convert it to decimal.
it seems to be working. thanks for your help.
Sure there is. This reverses the process:
IntFmt $0 "%d" "0xhex number here"
You're absolutely correct. I forgot about the 0x prefix notation for hex numbers.