User Tools

Site Tools



HP(value, numberOfDigits, zeroPrint)

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

See also DP and FP.

Go CUBLOC home

cubloc/hp/index.txt · Last modified: 2016/06/22 10:54 by COMFILE Technology