pasensyoso_manigbas
Well-known member
- Joined
- May 19, 2006
- Messages
- 64
- Programming Experience
- Beginner
anyone knows how to convert an integer value to hex?
i have only this code but im not barely sure of the result
here it is:
For x = 0 To txthex.Text.Length - 1
tmp = (int_hex >> (x * 8)) And &HFF
hold = 0
For y = 0 To 7
For z = 7 To 0
hold = hold Or (((tmp >> y) And &H1) << z)
Next
Next
res = res Or (tmp << (x * 8))
Next
txtresult.Text = hex(res)
any suggestions?
i have only this code but im not barely sure of the result
here it is:
For x = 0 To txthex.Text.Length - 1
tmp = (int_hex >> (x * 8)) And &HFF
hold = 0
For y = 0 To 7
For z = 7 To 0
hold = hold Or (((tmp >> y) And &H1) << z)
Next
Next
res = res Or (tmp << (x * 8))
Next
txtresult.Text = hex(res)
any suggestions?