@sorex:
That is precisely how I got it to work as mentioned in my edit post using the Bit.parseInt. But, I thought there might be another way with chr(data(0)).
I am still at a loss why the following code does Not work though:
Dim strVar As String="0xF000"
Dim Intvar As Int =strVar
Chr(Intvar) Does Not work with error: java.lang.NumberFormatException: Invalid hex double:0xF000
But if I use the value directly Chr(0xF000) instead of the variable , it works. I hope someone can give me a convincing answer.