Hexadecimal conversions:
This caught me out recently. I was not aware you could convert a '$'-prefaced hex string back into a decimal value using an Int cast. I spent hours writing a hextodec function! It's the little things like this that can save a lot of time if you know about them...
val1% = 255 Print "Integer: " + val1% s$ = Hex(val1%) Print "Hexadecimal string: " + s$ val2% = Int("$" + s$) Print "Integer again: " + val2%
This caught me out recently. I was not aware you could convert a '$'-prefaced hex string back into a decimal value using an Int cast. I spent hours writing a hextodec function! It's the little things like this that can save a lot of time if you know about them...