I have this line with 3 columns : 0xF000 glass WebApplicationIcons
CC(0)= 0xF000 ' is retrieved from parsing the line
If I use: chr(CC(0)) I get the error: Invalid hex double:0xF000
But if I use chr(0xF000) or chr(61440) my code works.
How do I convert the string 0xF000 to hex 0xF000 or decimal 61440, so I can use chr() in Fontawesome.
Thank you
EDIT:
I removed the 0x from the string: 0xF000 and used only F000 and converted it to decimal. It worked, but I welcome better solutions and more efficient using chr().
B4X:
Dim CC() As Object
CC = Regex.Split(TAB, Line)
CC(0)= 0xF000 ' is retrieved from parsing the line
If I use: chr(CC(0)) I get the error: Invalid hex double:0xF000
But if I use chr(0xF000) or chr(61440) my code works.
How do I convert the string 0xF000 to hex 0xF000 or decimal 61440, so I can use chr() in Fontawesome.
Thank you
EDIT:
I removed the 0x from the string: 0xF000 and used only F000 and converted it to decimal. It worked, but I welcome better solutions and more efficient using chr().
Last edited: