Hello everyone,
i need to convert a 32bit Dword value to Hex, using hex$ for that.
I tested some using the following code:
dim a as dword
a=val("&b"+"0"+string$(32,"1") ' unsigned 32 bits
print a ' works nice, displays correct value
print hex$(a) ' causes overflow
this leads to an overflow. if i change the 32 in the string$ function
to 31 all goes well. may i conclude from this that 32bit values cannot
be converted to hex? thanx for any info on this.
Tom
------------------
i need to convert a 32bit Dword value to Hex, using hex$ for that.
I tested some using the following code:
dim a as dword
a=val("&b"+"0"+string$(32,"1") ' unsigned 32 bits
print a ' works nice, displays correct value
print hex$(a) ' causes overflow
this leads to an overflow. if i change the 32 in the string$ function
to 31 all goes well. may i conclude from this that 32bit values cannot
be converted to hex? thanx for any info on this.
Tom
------------------
Comment