HP
converts a variable into a hexadecimal string representation. If zeroPrint
is set to 1, zeroes are substituted for blank spaces.
Debug HP(A,4,0) ' Convert A into HEX String representation ' Set numberOfDigits to 4. ' If A is ABC in hexadecimal, " ABC" will be displayed. ' (notice the single leading space) Debug HP(A,4,1) ' If A is ABC in hexadecimal, "0ABC" will be displayed