G
Guest
I took a look at the stringbuilder solutions discussed earlier today... and I have a question that is also tied to a result that is currently having me scratch my head. It looks like this:
Dim hexString1 as String
Dim hexString2 as String
Dim hexResult as String
hexString1 = Hex$(decValue1)
hexString2 = Hex$(decValue2)
hexResult = hexString1 & hexString2
main.output.additem(hexResult)
A couple things to note: hexString1 and hexString2 will always be used to represent one byte of data each. So the range of hexResult would be 0000h to FFFFh.
The code above seems to work in all instances, except in instances where the upper nibble of hexString2 is equal to Zero (ie: XX0Xh). When the value shows up as XX0Xh, the result appears as XX00h.
Is this normal? Any suggestions?
Dim hexString1 as String
Dim hexString2 as String
Dim hexResult as String
hexString1 = Hex$(decValue1)
hexString2 = Hex$(decValue2)
hexResult = hexString1 & hexString2
main.output.additem(hexResult)
A couple things to note: hexString1 and hexString2 will always be used to represent one byte of data each. So the range of hexResult would be 0000h to FFFFh.
The code above seems to work in all instances, except in instances where the upper nibble of hexString2 is equal to Zero (ie: XX0Xh). When the value shows up as XX0Xh, the result appears as XX00h.
Is this normal? Any suggestions?